Received: by 10.223.185.116 with SMTP id b49csp7208003wrg; Thu, 1 Mar 2018 01:29:47 -0800 (PST) X-Google-Smtp-Source: AG47ELvIXXCk6ofVk6LSEFglMQ5R9LsOWrPfOIzJqpu/ubFMoXUT336XG6d2NDs4yBwq5q/flXT1 X-Received: by 10.99.180.3 with SMTP id s3mr1018631pgf.258.1519896587254; Thu, 01 Mar 2018 01:29:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519896587; cv=none; d=google.com; s=arc-20160816; b=c8GH2GerZS/P4nP+R2jmOYE/gegP9f3HOHplfCtV4tQhPOQ8wN0Dwo7DUuULB144Lb kPCGQI2Ygbg2ZQbfd1seFlYvt9egPKhatoT/Qthde7BXBpOBY2t0EFPTlBv5nslnhszJ TUz87/6sIP10VgjyGpK64v2lxrKj0XtuN7+zlOK0QoIt0qIm93Bttu7saypaKCF2UY+2 LMi7V7PIRUazXTvzHXpistYyxfmcoDovCF9vdJNIbnN2Qeqsrf8cF9LNPlsataXD32mB ELwo+j0Kv9STJrUCKkEIxzX9LUinKMeANxq/KH0+jdb8/KTuD1lB4yfJd6J4hvlL9Voh 1tqg== 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=2UAPJeOXP2FmTW74GYw31eduip6nxh8BrcXMozNqdw8=; b=eF3RamL7rvxTvnb55TRXeabXElQj4I4jmgO492kBFkcS+BCpQCyOQ3N/P0l2P38Kcm 1lgyDiBLNR0r9hwtho3Q988miFa2Y6hq4BtZbE85Y/66fZb3loTrGZBongbZA5eozIm0 5MD43XsVkRALdrmMjMbShjO1Fsq6lgm6Evnh7M3uxHR4X0oNzqdBAZWF7+Ob4TVnfAIh eAijoF98CUS7QdtEuXESIUlJxKhQformcCi4gT0JTI2AldMxTmrcy6DiDt4z+G0ZGteH wEJ+LyS+X5mCrcvIgU+6uPKQUg1Q+TQpTRRrHwNFNin+2CvUE5zVS1YilFx0v0iUjS/J YcqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jYfkghVq; 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 a15si2708568pff.139.2018.03.01.01.29.32; Thu, 01 Mar 2018 01:29:47 -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=jYfkghVq; 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 S966948AbeCAJ24 (ORCPT + 99 others); Thu, 1 Mar 2018 04:28:56 -0500 Received: from mail-io0-f196.google.com ([209.85.223.196]:38636 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966904AbeCAJ2x (ORCPT ); Thu, 1 Mar 2018 04:28:53 -0500 Received: by mail-io0-f196.google.com with SMTP id g21so6421120ioj.5 for ; Thu, 01 Mar 2018 01:28:52 -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=2UAPJeOXP2FmTW74GYw31eduip6nxh8BrcXMozNqdw8=; b=jYfkghVq6PtLRX7lgQ4pmSEqGcm77kUqDMDLBjyE4vMe1D7KBrD3ai05XBvRaDYyB7 lwc/iJycUmNK0U5mBGK7T16pJsMCYS68VLoYMLz2easrua3F0kGP353gfrp77SHxnWzS 4HQsjAYlcw+ORuAObd+iM44uWIr6q0D5ls/l4= 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=2UAPJeOXP2FmTW74GYw31eduip6nxh8BrcXMozNqdw8=; b=eyW4MKUMs2jc+jtEYpjyQf2CDWZS0d3V0c+JMDJJClEyJJvhax33JonJtuh8wTBJu7 KinlrzfDf5N7brTq+mqwvKPpqd4xDgJKK1etmKRCXFnsnRzEqR5iKzHc/7J4GGRCKTt/ xvMNn2fhg0yfVm9STVAbbchGVzo5fQxwK9h1NffRQtbeKPRR6WjbpHAerozFy5n8xa1a D8PpuAmtnbZxvkjWd2lB8Bfu9sEB6jrL6wpQuASPWxaTWrdNcikhQu4gDJYQJpgHFoav rCBfn/2ZWT49bKkabwckhah834hV25YM3jkn4rkqaNTruev/VsY8D/XfB6UMSTx9aeHT ZXiA== X-Gm-Message-State: AElRT7GoC9Nicztcjtp3Ke6hzh+x4qSqVvCjkzImMZW7Jqau7aF3ZiIj cCkKcOE1ia0qpePeitfIpnyRFKku9baJDcFFZE5dhA== X-Received: by 10.107.158.147 with SMTP id h141mr1202060ioe.175.1519896532478; Thu, 01 Mar 2018 01:28:52 -0800 (PST) MIME-Version: 1.0 Received: by 10.79.230.25 with HTTP; Thu, 1 Mar 2018 01:28:52 -0800 (PST) In-Reply-To: <20180228134822.2194009-1-arnd@arndb.de> References: <20180228134822.2194009-1-arnd@arndb.de> From: Linus Walleij Date: Thu, 1 Mar 2018 10:28:52 +0100 Message-ID: Subject: Re: [PATCH] gpio: raspberrypi-ext: fix firmware dependency To: Arnd Bergmann Cc: Stefan Wahren , Dave Stevenson , Baruch Siach , "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 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... Yours, Linus Walleij