Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp112178imu; Mon, 10 Dec 2018 17:19:26 -0800 (PST) X-Google-Smtp-Source: AFSGD/X/LbbjkIA2D4QiokzltHm1uUaXxZ0Hz/GHGntj+nZggsXK+9GvZL4dHjHzkP2+V0TOUSVl X-Received: by 2002:a17:902:4d46:: with SMTP id o6mr13531476plh.302.1544491166087; Mon, 10 Dec 2018 17:19:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544491166; cv=none; d=google.com; s=arc-20160816; b=L36OhFMXYUC8YTKtLCMT65MpHt1d5AxJFbeVkruBHEJKkof0+rNA4qQhBQi+EM7IY8 F4pFlFpaHyE/K9YfB4SDPx+4FjtshAD1tLwZvywLUT7Hxj7l6SFvOxtMqKjKzhlwcTg6 XpPGsp2wg77rkzwNBSyeKDwqTh+sY+wsYgaeOvhaVCd26SNV9yZZkxjYYU2XbHdhAR7L 8z1Buk5H3Tzd+2yY3nc20NYpcEY7dQbUIat1/iYGI/jr1PyIzwrlxZygBP7AFR1tn8MZ gViDewaGkptnhK2XOOTHtxFAEMXvYqIbcNPdzuM0iV2Teua1Mg5KxQxx4WaDDZYejJN6 4Tvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=IqdwBBgcJq9rT5b7nVJCsrhC4Os2p+N+DgopFIYBmVw=; b=dRl5Mi6W7KUZGfVCfxR376hM8k7/2W2QEivtcm23pzTXIhTxOSiSAU15GCe0mO/JOE Xdt9dqSI9Y6a0NpbvYKAzj6W+LTmvDkcbJhpgWlS+1IWWJbwYBiheRiPJ6H35+ZkHe7P iylGpJTXsF3Gt/TOFvgbXvMsgKn/vccDzGPETKITBWaO5A2Js6HyIc/bX2Ct29lpzWiC CK4Ofo9TtP+J7hhxe11Y9TGWq3kfmiXYR+NHGpZsOgcuF30KWlPRaoE8x7T1fsDzP+k2 2SlzELgipmjN8Z3jSjdKupODwJ8DtUrY2Pq9DgneprEKnDLlCmrsSarLgIrKXBienH2d aMZA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w16si12070383plk.192.2018.12.10.17.19.10; Mon, 10 Dec 2018 17:19:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728363AbeLJWVD (ORCPT + 99 others); Mon, 10 Dec 2018 17:21:03 -0500 Received: from mail.bootlin.com ([62.4.15.54]:56325 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726392AbeLJWVD (ORCPT ); Mon, 10 Dec 2018 17:21:03 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 7458820862; Mon, 10 Dec 2018 23:21:00 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.2 Received: from bbrezillon (91-160-177-164.subs.proxad.net [91.160.177.164]) by mail.bootlin.com (Postfix) with ESMTPSA id 360D02037D; Mon, 10 Dec 2018 23:21:00 +0100 (CET) Date: Mon, 10 Dec 2018 23:21:02 +0100 From: Boris Brezillon To: Arnd Bergmann Cc: Mark Brown , cyrille.pitchen@microchip.com, stable@vger.kernel.org, Piotr Bugalski , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mtd: atmel-quadspi: disallow building on ebsa110 Message-ID: <20181210232102.13ab5178@bbrezillon> In-Reply-To: <20181210203837.2118450-1-arnd@arndb.de> References: <20181210203837.2118450-1-arnd@arndb.de> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnd, Should be prefixed with "spi: atmel-quadspi: " now ;-). On Mon, 10 Dec 2018 21:38:16 +0100 Arnd Bergmann wrote: > I ran into a link-time error with the atmel-quadspi driver on the > EBSA110 platform: > > drivers/mtd/built-in.o: In function `atmel_qspi_run_command': > :(.text+0x1ee3c): undefined reference to `_memcpy_toio' > :(.text+0x1ee48): undefined reference to `_memcpy_fromio' > > The problem is that _memcpy_toio/_memcpy_fromio are not available on > that platform, and we have to prevent building the driver there. > > In case we want to backport this to older kernels: between linux-4.8 > and linux-4.20, the Kconfig entry was in drivers/mtd/spi-nor/Kconfig > but had the same problem. > > Link: https://lore.kernel.org/patchwork/patch/812860/ > Fixes: 161aaab8a067 ("mtd: atmel-quadspi: add driver for Atmel QSPI controller") > Cc: stable@vger.kernel.org > Signed-off-by: Arnd Bergmann Reviewed-by: Boris Brezillon > --- > drivers/spi/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig > index 55d5ffb50750..9f89cb134549 100644 > --- a/drivers/spi/Kconfig > +++ b/drivers/spi/Kconfig > @@ -93,7 +93,7 @@ config SPI_AT91_USART > > config SPI_ATMEL_QUADSPI > tristate "Atmel Quad SPI Controller" > - depends on ARCH_AT91 || (ARM && COMPILE_TEST) > + depends on ARCH_AT91 || (ARM && COMPILE_TEST && !ARCH_EBSA110) > depends on OF && HAS_IOMEM > help > This enables support for the Quad SPI controller in master mode.