Received: by 10.223.185.116 with SMTP id b49csp8590907wrg; Fri, 2 Mar 2018 04:40:13 -0800 (PST) X-Google-Smtp-Source: AG47ELt3p9/LYYlYzWrb8LNzANzSWxf04zZieRxljrutunxLVcWavplJBiFWo1RZTMY/OyUA9x08 X-Received: by 10.99.97.7 with SMTP id v7mr4549118pgb.239.1519994413652; Fri, 02 Mar 2018 04:40:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519994413; cv=none; d=google.com; s=arc-20160816; b=zTtLBkgE1X2BFbauNzlWqNoHFcwvbrX6MeuEFkLK1CCAihVEaGqAig1FWncsODmwLR D64c+teMrpYfsdCtMwo1HPdnXwTZfQQS+ptZAluz4GQmXWaLyiLk0v6gg3kgyPaBnFc3 ObYtLv2XTnMU+WrQL8iXRPdEUnIGx4TCJxX1Y85sCp2DW7KkI0K0VF2yqji0u5VfSqVq JvOaZd/MQcgMr3pvZM0aq2gHzU9smMUSu+c9kulQtcnzX8tJloo9s6ioDkxUlpgWGVPy h7cK4aPADkL1RKW6sgKCMHp1HKo+DkYxhTiAB4s3w+s/vkKXdIhq8p/CbYgEzt+VDVAr tGew== 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=hw8DvbyleRtmqOK1H34LQHPLy25Xk3kQxpSMlX1UIUI=; b=ztHx2OqOaWix00ertXlQZBAlcmpK+Hz3Lss3OICTti9Z7ZVFqYCCifzGVQ/EPM8OZ/ CC/6g2KTeVTz1lWvoOKfZaa8REVd8+yBY3PsVb2rETcNyDKApOexhTq8L+ytPZGtKQ+L /pm+QTeIET4xPctQnyBkQXYLRzohDdlKWj02CFQf4VRftsiMtC+P1HyisoC2P4O4ss6o 3qU+2uyE0VsbesoaQ6Ayw7kxh/MXIJRhlW99X9E+1KYaSB8Wl7u9GYfoYbbum4/LhzAA drFy6lbF6CST8MW1dt3wV7E3JFwy4WZ6RFZh3TRZ/Dy43VHr+iN5yraufqKm49zDpfwJ tMww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NBPXfUZ7; 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 s2si4821777pfb.269.2018.03.02.04.39.59; Fri, 02 Mar 2018 04:40:13 -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=NBPXfUZ7; 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 S1423116AbeCBIr2 (ORCPT + 99 others); Fri, 2 Mar 2018 03:47:28 -0500 Received: from mail-io0-f193.google.com ([209.85.223.193]:45212 "EHLO mail-io0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423104AbeCBIrZ (ORCPT ); Fri, 2 Mar 2018 03:47:25 -0500 Received: by mail-io0-f193.google.com with SMTP id m22so9944977iob.12 for ; Fri, 02 Mar 2018 00:47:25 -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=hw8DvbyleRtmqOK1H34LQHPLy25Xk3kQxpSMlX1UIUI=; b=NBPXfUZ7lLqP9IKZnSTa4BCa+Z1WeWxgQ3KR+F8v3Vq9xgTUWRw7vjeBqyffZnDFDJ tluf7Y5EdFrEk3vKGzLXlLqxDbtl2J4nSEto8M6d+7Ry1GArM2D0m6VzmLJrisYXxVgE rpekKvF2Z2XJcZJU1OyJEn4+DhD4WcwmBHGZQ= 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=hw8DvbyleRtmqOK1H34LQHPLy25Xk3kQxpSMlX1UIUI=; b=IF8mY2JNT2rqrQLJkw6fuCRREYQbRPM9tlDu1fTOThekbQE+dPDAaQggaodtBrdxvp HpR4YW/jcx6DFF14EujphquWl9pmXXKHbrcD9OfIUXfjb0Km3/u56HNgw+hB1wPjFjpg Eoim7qoFYAH7KGwg71eAOSLvUHh6rLTT90nH2JxQPmVtut7XRQ+LiCgfwj0V4x1NtACN YI5JbO+4ZjuhPrqqISdSXbJAqpA/wkHUYQn3yx1gMP8EXePCTusCvCQRZBYhDolddvqi bUJWQN5ywnXlvlTmDuHwjEOGGBh5TjuWj/yyrbWn8OKPLY8xZBXyTd8C4G/6hqn55Uvf JHjA== X-Gm-Message-State: APf1xPAJCFjIKhDoewIUxxRDCKbfSPZoZDeKeG3J6cReYLHby3FSdHog S7Hx2VPMstC0Mg0JW2OTAyjsFwXA9aSDnr/WMVbL3w== X-Received: by 10.107.139.77 with SMTP id n74mr5638037iod.109.1519980445398; Fri, 02 Mar 2018 00:47:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.79.230.25 with HTTP; Fri, 2 Mar 2018 00:47:25 -0800 (PST) In-Reply-To: <20180228134822.2194009-1-arnd@arndb.de> References: <20180228134822.2194009-1-arnd@arndb.de> From: Linus Walleij Date: Fri, 2 Mar 2018 09:47:25 +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 Patch applied. Yours, Linus Walleij