Received: by 10.223.185.116 with SMTP id b49csp6208037wrg; Wed, 28 Feb 2018 05:49:34 -0800 (PST) X-Google-Smtp-Source: AH8x2246eKL2jyAadid322fr7jTqM/L3juLhLBNyMVgVUE7kr4pdLtioTPCofFK+UOiWGK8KAEI/ X-Received: by 10.101.92.196 with SMTP id b4mr14033224pgt.27.1519825774577; Wed, 28 Feb 2018 05:49:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519825774; cv=none; d=google.com; s=arc-20160816; b=F7KTAz+QhrF3qsObsj+bfUXQI79OHxmEYq49cFSNyOBhsbedr2r/TTZxOCr5AXndNN cwunGWIaZozbA9UUf+uyHzpAOyPfOmL9aBd9mV7IeUVNMeJYVxISpCjJxRdrX1DKCKho w/2csIJO+0CUbKdp/9l/fE4M/T530k1RhZlo06lEv2fsciixDRC+5Grvn3xQ9Qr9+pnO ZaWtzC7X3mKN5i7UD/MUt2yFzze7mX+5st+fE1CZqF+R3c8KZJmlOcECyJGh0Lau1Qpr 1q3IF9doe3HFTZBZKcxXDizJwS0RoWT2JAcl9y2t/Zzw23tnZ18ZArNHLeds7ZLtyQxQ beew== 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 :arc-authentication-results; bh=Pu8fjnnd/gV/uY/QmfvDDvJitHJXrlxgNx4c5CVqkKI=; b=PnWDrOUGNybGhdtE/xPMvAE2VS/MRknR8VOORxboh2aY2ZRV2Rd/cqLZYh9tWoQYo+ QPCq9WjIfoO1zCax9zndk35+nOqLtoFRAEQcZcb2H9ujHjNDbQg3f+nLXf/12DR3i0p6 DcWw1G5fU87vvXs9VF0SXPR4tEithlIaR7DAAAdTpC4lLKt5vwupQqLx5ZfvHItB2Q7p 23Otc6VlrmuTytXYrBtVrwia5whdvzi6VDRnRcUPfo8qLC5LMO96OSNcy89sweUUc6Nw 3yq2FZ+6K6JZsOonz3fg6CuX5Kx/7y8D0ef0k2QDktlakHxJuU4O7w9dhg/2aUnjovdb E8QQ== 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 d17-v6si1274471pll.609.2018.02.28.05.49.17; Wed, 28 Feb 2018 05:49:34 -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 S1752575AbeB1Nse (ORCPT + 99 others); Wed, 28 Feb 2018 08:48:34 -0500 Received: from mout.kundenserver.de ([212.227.17.24]:59837 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752441AbeB1Nsc (ORCPT ); Wed, 28 Feb 2018 08:48:32 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.145]) with ESMTPA (Nemesis) id 0MAMfa-1f1SD40VNS-00Bg9x; Wed, 28 Feb 2018 14:48:24 +0100 From: Arnd Bergmann To: Linus Walleij Cc: Stefan Wahren , Dave Stevenson , Baruch Siach , Arnd Bergmann , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] gpio: raspberrypi-ext: fix firmware dependency Date: Wed, 28 Feb 2018 14:48:08 +0100 Message-Id: <20180228134822.2194009-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:Y1Bxfn68GtFS0Zgsra2KZo80bWSdI0qPlkBYkKkPlK+RSvpL2L1 2dUU5NNf5snywx4FaAzJTiydxakT+M25DPzE5lMQjJcnTAHurqAOu4jMm7Xa4ohCaYTUEsm ZfXavQb1o4gqmNhbS+49tmiHvqhn8TcCLbZcAc3XhbX1/zSFlZ6pwKSsKvGQ7l5vT6HPYEE luA9Fb6NzocKPzggvLFTw== X-UI-Out-Filterresults: notjunk:1;V01:K0:m5698xSRjhI=:wOwX2VhE0GLysTgbk4t1ln 2zFphcaAc+aV5tJTVAT9NwKbJwm4gL19kSd1UEkD9B2p9dfcgHqbg/fz0GxcfI6aDmljdAQpe WLV2ZtaKTEOxKG29/BBKX/7uLJTKGD66veOQw8bIzkl59z5TnnSV1Rl3k3/S3yVf9ccr9WN/D LQGEMIYgUarzgV+31kvcuY5fjdoDKob1gEaxQkZ1pvE6RMyn7byrqxPmBm8ymPmUIxQ5sSplm Rsgu0uDlOq+9ajNq4gXh0wuwSIluoXQ05Z7R49t51fc5xG1VOh8HG/iufEp+D9dOVRGuT2bSv b5x+ngfjdDvonDwjbioCG9uD/VRrBHTuPP4icVGrrj97tqt0zbfRjfs9A+L6BAS3ADDIZ5NK5 2oAqZoSrxxigXM+rCJuSapUWK7FtxcX+/YbdYvdOw9cuB+Rbyb68GKGoW2moLqp7+dbdQUqWW End07QKaNB5LxxsroqNY6X7PyDk+1Ma4KiTtQyryBQkJWWYvFG9hySASln4m3TSHhnZXOth76 SsY0ttWhi1Cm+VwkiFiDG38gvPNulY5DfqeIyW0TYlMN4chDvLeG8Qmw5sddsvudneE5JkT4x /JNso/ProYSI9kIv8gLGhPzgc9TXsKtqzv+qNJjWLUph4xNdlQdlcxjMeOHLem5fPoev1cQ+8 gRN9cX2WRVX1Zn2ZPLpd9TePPuyZ1xLxWvhZHysiMPRV3HR1VCS8o9w7gGUeVa+MccZEzoOvf dHQcYKMjYXo0kodHVwv4bYGhhieZjkvJLH5hew== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When the firmware driver is a loadable module, the gpio driver cannot be built-in: drivers/gpio/gpio-raspberrypi-exp.o: In function `rpi_exp_gpio_set': gpio-raspberrypi-exp.c:(.text+0xb4): undefined reference to `rpi_firmware_property' drivers/gpio/gpio-raspberrypi-exp.o: In function `rpi_exp_gpio_get': gpio-raspberrypi-exp.c:(.text+0x1ec): undefined reference to `rpi_firmware_property' drivers/gpio/gpio-raspberrypi-exp.o: In function `rpi_exp_gpio_get_direction': gpio-raspberrypi-exp.c:(.text+0x360): undefined reference to `rpi_firmware_property' drivers/gpio/gpio-raspberrypi-exp.o: In function `rpi_exp_gpio_get_polarity': gpio-raspberrypi-exp.c:(.text+0x4d4): undefined reference to `rpi_firmware_property' drivers/gpio/gpio-raspberrypi-exp.o: In function `rpi_exp_gpio_dir_out': gpio-raspberrypi-exp.c:(.text+0x670): undefined reference to `rpi_firmware_property' drivers/gpio/gpio-raspberrypi-exp.o:gpio-raspberrypi-exp.c:(.text+0x7fc): more undefined references to `rpi_firmware_property' follow drivers/gpio/gpio-raspberrypi-exp.o: In function `rpi_exp_gpio_dir_in': drivers/gpio/gpio-raspberrypi-exp.o: In function `rpi_exp_gpio_probe': gpio-raspberrypi-exp.c:(.text+0x93c): undefined reference to `rpi_firmware_get' We already have a Kconfig dependency for it, but when compile-testing, it is disregarded. This changes the dependency so that compile-testing is only done when the firmware driver is completely disabled. Fixes: a98d90e7d588 ("gpio: raspberrypi-exp: Driver for RPi3 GPIO expander via mailbox service") Signed-off-by: Arnd Bergmann --- drivers/gpio/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 2ecd2adbaec6..52a8b0a6f4e1 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -126,7 +126,7 @@ config GPIO_RASPBERRYPI_EXP tristate "Raspberry Pi 3 GPIO Expander" default RASPBERRYPI_FIRMWARE depends on OF_GPIO - depends on (ARCH_BCM2835 && RASPBERRYPI_FIRMWARE) || COMPILE_TEST + depends on (ARCH_BCM2835 && RASPBERRYPI_FIRMWARE) || (COMPILE_TEST && !RASPBERRYPI_FIRMWARE) help Turn on GPIO support for the expander on Raspberry Pi 3 boards, using the firmware mailbox to communicate with VideoCore on BCM283x chips. -- 2.9.0