Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4131943imu; Mon, 10 Dec 2018 13:43:36 -0800 (PST) X-Google-Smtp-Source: AFSGD/XtB0V/+8i8IjcIe+8oYGnsjXsM0LsF0PqXKLIYSUj7InNK6pwMHcyuDcXWY9cu1IW6MyOF X-Received: by 2002:a62:4bcf:: with SMTP id d76mr14649637pfj.170.1544478216636; Mon, 10 Dec 2018 13:43:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544478216; cv=none; d=google.com; s=arc-20160816; b=AdPpfgiW8hal1xzSX3HhNPKuRxfuWyxvQ8Gb7PtrRusZRm3rJIgJkvlyIhfpwYtkWm FOWzxyo1MySa8AkWUGUMe3HBRNl6GP5ecPWr0AhvLTXZ+PljnI4P+O6/qXRe4f+Khinh iR1Xmc4iE1xoHLCyL/hq9erL+rgTaQVm899oDJiFsgQ21WHBu0JYzoTpcpOgmEc95Jgi 6jmYVEbWem/LJrmGdA6vruLaSu5LHM/R+ZEncB3iOdIwhy5JDgNNdsr6eUUOSZNFbxP8 O/1wb0kmEASRttecifQ9+wur7XrLhQ3ThBNQEgZkQRGEoGvpXHWERnabnrnZp/a1muUs a+/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=pob+DTlO4qdBwi7PmMV277VagZHwgQnCPCFQvICWXT4=; b=tywjmtS/OLX4aP+KXT0g8D7YvgoTAgmcpAZx6yM+3onsV1We3ya2+7OO2iFB4URpWF D/hGQFeI3qJYzmDtmFQpahMX5OF6U5WNFkCo03tkQL/hmeJIRBXWHem0se1zMZGIeNgT EEbCOvklmAmz39FBAQ6Xax1pookod2vijN34JgMUtKNbSQUO/XrqChvfyev4PwXsRLyv VWzo5VmxtenYulLd9dTR5NB7aa/chiuIu/q0mkilh8CSi+9SVijXj0ynVV9HYXXZhGwj TYNNELem++5BBx3DOABQT0CE2Z8QR0AWG7KxCndsO7xiFng7kgFkfaTXiie9lYV574Zl aNTA== 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 a11si11658400pla.20.2018.12.10.13.43.21; Mon, 10 Dec 2018 13:43:36 -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 S1728707AbeLJUiu (ORCPT + 99 others); Mon, 10 Dec 2018 15:38:50 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:54079 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727538AbeLJUiu (ORCPT ); Mon, 10 Dec 2018 15:38:50 -0500 Received: from wuerfel.lan ([109.192.41.194]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.145]) with ESMTPA (Nemesis) id 1MVNEv-1gvRIs3oFL-00SL7E; Mon, 10 Dec 2018 21:38:42 +0100 From: Arnd Bergmann To: Mark Brown Cc: cyrille.pitchen@microchip.com, Arnd Bergmann , stable@vger.kernel.org, Boris Brezillon , Piotr Bugalski , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] mtd: atmel-quadspi: disallow building on ebsa110 Date: Mon, 10 Dec 2018 21:38:16 +0100 Message-Id: <20181210203837.2118450-1-arnd@arndb.de> X-Mailer: git-send-email 2.18.0 X-Provags-ID: V03:K1:dnNz1D1MsvnysDMUO24uu0P5e145KMttEK7BE/MvIaeQLbJ7tPG 6Td3avJLC+cCyBNIecdoFydoo3D2lnwVCdhb2ZbXItagJm2ofxClw450rFgGGOrKuGG8x4M f6YIJ4EBr24eRrRUzfKl0h4IFdTnjjjCW/Das2WIBMZO9Vcjj9K60i5gzJZHvqRstzzU99c 10UGvo4SM7kBIaFaaUBgA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:NDXrki2CU3M=:I02ouvXrUZBVAXMhXCOK9W WJpfZfQyym8Z7gBOay4UibE7QSwu8ge2jX9Dh4aEEUvzKxGpDHf1cL7OOTT9fWRqj6WVpfL1S eNkP8ctNmcdc6etsHsw76bHFNgYqz5dafy04mun4EBw+kHmva1yqJq2mnGIuXc0x6FKMGf4aM XNtMPd9W/T/+MKYmObyZsTKX9CLJjc8l3tk8cOAg3JRVYwc3HMvdSxXVWPQUXHf+koa+g7yfY K5Ee1+XZ430kEPWehTDjRDZ5ic4B0se/xah0zmxt8tx9sNOUcUAAEnN96M8JiIrzU+1Dwwh/Y iqfYqtiaBcLPF5GoPoc+LUnVrSwjLoizWiRbalgKNCYZVHZoKgrW9zCO1+w5YBBhaqyMx2LQv 6sq5rjgFJ3CId1QlEyc+SR0iNyocwUANuds4412RgzCe/BX4OSetNnnPSYONBD032rd++fcqf uV+CMdc6nqdGXH+jKukFXPezr5CQaYsoB2IawZotn7AYse2QGk/21FRRPEMt9fh641K3AOGPa +YrXQwc75NeCVaM+JJLlEAWOFdXr209ROBiSWLgAcwklemH5EmC+m7co79mO1vcAW/6pFRMfK vyJP0biBKdJB9dZ+WBgNlNenrNHDNqxPKMRhHRjpMCOcu9LG9LOIHdKfupa8aQ8XU+PtTu6yt UKCMVewMXHAI5uHq8Lo3s5ecZwb7/4wepI9Y3eVGoclZUB93Oxz9/xBpzTFJaPDV9rm1IWXz4 sB9n8chl24l3R6tvOMi9S60JOMGOIhjGCYoGWw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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. -- 2.18.0