From patchwork Mon Dec 10 20:38:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10722403 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 06B1591E for ; Mon, 10 Dec 2018 20:38:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EC0FC2A53C for ; Mon, 10 Dec 2018 20:38:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DFF902A52A; Mon, 10 Dec 2018 20:38:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CD0472A527 for ; Mon, 10 Dec 2018 20:38:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727778AbeLJUiu (ORCPT ); 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-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-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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.