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: 153337 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3987418ljp; Mon, 10 Dec 2018 12:38:51 -0800 (PST) X-Google-Smtp-Source: AFSGD/UrW3O7w0YETeujqw1Ws+i/NjTgs2Mn9OsaE+A54QUNiaS3taUPY4AQj0naf9L0RAHEaS3T X-Received: by 2002:a62:8096:: with SMTP id j144mr13924727pfd.140.1544474331354; Mon, 10 Dec 2018 12:38:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544474331; cv=none; d=google.com; s=arc-20160816; b=praZXmujuSU9YVX0ABUe6MwaP72+A2/747CBQyGzyETw3d4axArg0cnuToNHyP54HY 7//RUcjBZoUpsP0Y8Wvz19Zjnjav30dimAbGRPmfGHW+0UH588oIRwUDYNEt/xKfdY20 6iy2Hvgi7uavFLSSHIIWcOsawfmHrKkQcUx1+JJG4b1PapUqkJyDbCfz7MWIkgNDW8Xt KzDP1s8FRj5Boy3ovOnRt0GHVZofX+BFqRbxysl7FbvB40xXK9IG4muiCfBvjQxdTvtW JnPVisLsEfLy6U7Em2BPulMAESPN+hGwsWiB/TVOm53vYsTcMFHw+iS/ISHpn2+QCZMO 4aUw== 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=pzK7ayBukB815v+Rt7tyHjfgaFkcqtsv9qOZpDBAdqSSTNDTso7lxXKiwLOueF+Me2 oYk9tKhhd3aEGU2AMhMdjv2BFeFxsJes0TWlFRYJzuIrmOx6YcsR52YhyzeaclWuLMOG PZNNbnaZdhyHJBWqe3PGNkxdGfGkzaLKk2qCKQCbwrOx5YeecSJtE0nZ2AAP0eP4yDsZ p/WGa3PGkNEcLB4cxfiy7qt8FOba2CRdgpgStgcpzRpZqYq7HUu06wQqdVmXmLVOI2eO 97KZm/o0JcOqmDo4NQOAEoDnc0evqc3/1vEjWuGOF6JmfCCqOIuLTSiM+ud1PfRaN2Hd /vNg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-spi-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 e66si11184793plb.339.2018.12.10.12.38.50; Mon, 10 Dec 2018 12:38:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-spi-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-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-spi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727778AbeLJUiu (ORCPT + 1 other); 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-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@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(-) -- 2.18.0 Reviewed-by: Boris Brezillon 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.