Received: by 10.223.185.116 with SMTP id b49csp8407289wrg; Fri, 2 Mar 2018 00:54:39 -0800 (PST) X-Google-Smtp-Source: AG47ELsoKcjInWUteoM502AfAFNA+Bs3kZrp6ZTdd8LJK6UxhBhZhsCmsffixbXkzEni+4dpyljR X-Received: by 10.98.18.143 with SMTP id 15mr5030736pfs.104.1519980879483; Fri, 02 Mar 2018 00:54:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519980879; cv=none; d=google.com; s=arc-20160816; b=S4xs9iRr7pVGeT9+5jK2aeZVvaRwk2VLvPKQ7dwkV15yqrhhWOxb4i3H+MII72UeIn divFyLo3RPUVpPkM8Ayg6f+dcSNF6WNZsOjyoydJ05cW5Xf8Ofbp/JV9luI42ueBWOKZ rMG4MFMlJCD+6jpOaKN/oK9+927fQrIiffA9/RnIEmmyB9HqBzWihFpsUjrYfTd8MViI 0NJyWlM+P2UsY094F3brrMhPG4A7cHc9Ewax71vtQrsTWo9pKlacb/OT6GTgjzxFxKaC G4XdUxEsHDi/X9SrGavX//77jkYAfWf1NTY39QXd/ds8vwm5ufbey56MEz6qBX7Cxko9 9fjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=l3gMuF/wOHr02oIbcaJ49gwKja8eTWO1T/ZWM0wrEJQ=; b=vaB2M9iQU2tS3jHZ7OSERSaaOoZU2f/fouxr0Qgok+eaV7ErXQWVmQPRwLhRFOA40t sgd3WccuXJzumZ4gpfzH2hZvZkNTMIjHbGCIUTtWseB+5TN0Jo6ni3Rb8pMc2pnEVGcu tEcztxpzIwBat3J99zyw01CD//X4IwH8OScbVWX299MbhCGNGXzST8GUdXk7GDVOd/js mAef0n+XVo9OSnl0kn+3NshJEDuF1KNLyy8Bqxiqzn2qerhVgUMyXdtn2Y/X3I2/n3/C 1A6T7AClWyQzYegzTI4H2EcPXuXdlNisWpkx7i5H5GNbQYuHGit5Opsn4lOOLK4OKd7p cuYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VMF2fMG1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c5-v6si4440580plr.684.2018.03.02.00.54.24; Fri, 02 Mar 2018 00:54:39 -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; dkim=pass header.i=@linaro.org header.s=google header.b=VMF2fMG1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423129AbeCBItD (ORCPT + 99 others); Fri, 2 Mar 2018 03:49:03 -0500 Received: from mail-it0-f68.google.com ([209.85.214.68]:37251 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1164467AbeCBItC (ORCPT ); Fri, 2 Mar 2018 03:49:02 -0500 Received: by mail-it0-f68.google.com with SMTP id k79so1115056ita.2 for ; Fri, 02 Mar 2018 00:49:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=l3gMuF/wOHr02oIbcaJ49gwKja8eTWO1T/ZWM0wrEJQ=; b=VMF2fMG1tfzf601FzczmVGlQMnqSwQ1i4kcVgqyRSbdzlx/MGO5vl6RXS+JiPIvRS3 SZV9QP+dIcbYevm4NP4x4D6cKzg4LNCQEXWelV7/ndOhFClq6JzVccfOYwYrDhXOfD1t de0J1Mg1yLBZJU5mOCPh24UxFODoLmHfKgWJg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=l3gMuF/wOHr02oIbcaJ49gwKja8eTWO1T/ZWM0wrEJQ=; b=AaodyYzpOTOrP3Y2mgiNShrkMO9J+SZa45RGYibU4XYvoG1VHmHZcN/HMZ/bNvb0D7 d6Q7By8oSXBfUI2CjhW9qr8hQVLrD39XFf3OGAIW3gBNiWciOmIUf+/3iUu9SvllUtto s2TxrnGmZ5fMZdjqvTDSijm240GnTCDeG+YKPU1xtEiG24PbOZy1BQzEttg/SsH4oOWz RctNYF1ZQbroqcGhpiOk6+JRMt++U6rhP5XUr0Bth3bmj3BHXEfCIavm8swbGCPG6QZo raVvsy3ft8LdHhUtChPBs+7WUO1QXA83s8NEPMAKMXYj8X6nKBK7foYp/f8EaQ41JWta EPXg== X-Gm-Message-State: AElRT7EeR/Wel62Xx881I4eBAnZIPPNsd4+SLiyh1narPmE6sBfbyuxU PQJy/OO7kCGyztD1ssyJfO3zpdw7gwBESG0UgRqea4RD X-Received: by 10.36.92.205 with SMTP id q196mr1504407itb.135.1519980541601; Fri, 02 Mar 2018 00:49:01 -0800 (PST) MIME-Version: 1.0 Received: by 10.79.230.25 with HTTP; Fri, 2 Mar 2018 00:49:01 -0800 (PST) In-Reply-To: <20180301233317.ptmgx4coj6iedc34@tarshish> References: <20180228134822.2194009-1-arnd@arndb.de> <20180301233317.ptmgx4coj6iedc34@tarshish> From: Linus Walleij Date: Fri, 2 Mar 2018 09:49:01 +0100 Message-ID: Subject: Re: [PATCH] gpio: raspberrypi-ext: fix firmware dependency To: Baruch Siach Cc: Arnd Bergmann , Stefan Wahren , Dave Stevenson , "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 2, 2018 at 12:33 AM, Baruch Siach wrote: > On Thu, Mar 01, 2018 at 10:28:52AM +0100, Linus Walleij wrote: >> On Wed, Feb 28, 2018 at 2:48 PM, Arnd Bergmann wrote: >> > 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 >> >> Baruch, are you waiting for a fixed fix or should I apply this? >> >> It's a bit unclear from the mail chain what action I should take... > > This patch fixes the issue. I think that an inline comment should be added at > least, because otherwise the dependency in incomprehensible. I also prefer the > > depends on m || DEPENDENCY != m > > style to express this kind of dependencies. > > What do you think? I am hopelessly ignorant about Kconfig and the whole thing just bites me and scares me all the time, like it's an angry dog. Just patch on top of Arnds fix if you prefer some other solution, I bet you know this better than me. Yours, Linus Walleij