From patchwork Tue Apr 19 13:18:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102492 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp1846450qge; Tue, 19 Apr 2016 06:19:12 -0700 (PDT) X-Received: by 10.98.91.198 with SMTP id p189mr3969067pfb.91.1461071951966; Tue, 19 Apr 2016 06:19:11 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q73si2946751pfa.239.2016.04.19.06.19.09; Tue, 19 Apr 2016 06:19:11 -0700 (PDT) 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 S1754356AbcDSNTH (ORCPT + 29 others); Tue, 19 Apr 2016 09:19:07 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:65008 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754323AbcDSNTF (ORCPT ); Tue, 19 Apr 2016 09:19:05 -0400 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue103) with ESMTPA (Nemesis) id 0LqFFo-1bNQWF0FDk-00dlZo; Tue, 19 Apr 2016 15:18:55 +0200 From: Arnd Bergmann To: Mark Brown Cc: Robert Jarzmik , Arnd Bergmann , Daniel Mack , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] spi: pxa2xx: disallow building on MMP Date: Tue, 19 Apr 2016 15:18:20 +0200 Message-Id: <1461071933-3273163-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 X-Provags-ID: V03:K0:3eeZUCXS+9xIjpSOw0mgoLPwfpAf3+EAbHvSuiZvmPUn46tsasd nsXn+fL/18u4I5/EQU07J4+Lyjh4ahgSkkvjEKcLbAXJHYnCX99s+meegJu4pxTfCN5isO4 NcexyRjtJP4mV2vIJS1/83jwTz+dzf+C3IJRh6eRvjSvUrtmaaJkRAS+TnAST2I4x6c04Nb AqXQJsuBPYjrXLJfov5rQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:Q9oXNuBiT3g=:r9NRqDx3XBkgE9G7PabVTM +crEDEXIzzlIv0uU2/uyW4PmbfJsTy3O9v+65z79wSD3N2p57ks/9gGkBbwwtjfqRckFTGBRO pRzpbJhB3bAD4mS8IatNQlzz1KSnjx5fKy0GrJGun39kvq/VGfWEmVhLYKctSKHUfipAZvMeD Tmu3RlFB6Ib6Dap6PPt36wUPzdWIZOzaryX2yZ0PZ24q486UuZV1cxjY6ucXxnAWHCUp2C98Y GnZnUhU/am3YS3Jk0au0AeTHBq6hXgrhJF5yJ90r3JmegOQSAmd/lRCQv2K0WiOZrWTeVnoLM FaQCNOqr1XxvNgoc6AomsF+hshKsSFsYpYOxu4JqQW4YtNFhnZ62kNAmy/ZfmIA5TxLVeBUfc RqG0idQijxDHQBzcFSLPRV2jqhQ5yKGB5XqpboXVHN6mmRYLsjZZKLfzQXxqFT0TaQQEifTrA q3y18Wts+esH6GZuK2oRU6rk7FagegkkJSxfJfvnscm3AHs0P7OotXG3tH32AC8LZu5ykpKjO aRTF+YpSWABEjrf9nTCwfYcwXI3SadnPwcF+8iqJhD6blIYiSYXwg10MhTWKBbJzShbTqHq/6 6ynXSEjFe1larM5N78IODg/nkFx9y5PpmBQ4IDcsRU+kRwdetSEr4t2oZh2qPsmQnhT2xQlEJ cFQEFAMHspxrS9R+1Sbj7seNRcn2ob8QQk5+dmWvjtgxVQ8cf31S7LDg7lUx0536TPAU= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org After MMP has become part of a multiplatform build, we can end up with a randconfig build failure in the pxa2xx spi driver: drivers/spi/built-in.o: In function `pxa2xx_spi_remove': :(.text+0x1845c): undefined reference to `pxa_ssp_free' drivers/spi/built-in.o: In function `pxa2xx_spi_probe': :(.text+0x19844): undefined reference to `pxa_ssp_request' What happens here is that we can enable SPI_PXA2XX when some other platform in the same build supports PCI. This normally works because the pxa_ssp_request/pxa_ssp_free functions are stubbed out when CONFIG_PXA_SSP is disabled. However, we can have PXA_SSP=m when that driver is used by the SND_SOC_TTC_DKB audio driver. This changes the Kconfig logic to just disallow the pxa2xx SPI driver on anything but x86 and pxa. Signed-off-by: Arnd Bergmann --- drivers/spi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.0 diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index e33be3775a3c..ad8d8714d5b0 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -469,7 +469,7 @@ config SPI_PPC4xx config SPI_PXA2XX tristate "PXA2xx SSP SPI master" - depends on (ARCH_PXA || PCI || ACPI) + depends on ARCH_PXA || (X86 && (PCI || ACPI)) select PXA_SSP if ARCH_PXA help This enables using a PXA2xx or Sodaville SSP port as a SPI master