From patchwork Thu Jan 11 08:35:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 124156 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp371425qgn; Thu, 11 Jan 2018 00:37:13 -0800 (PST) X-Google-Smtp-Source: ACJfBostSwFhp5N3UDf6udbq4XaxWu7WA8wNCsiT8Ixw60esN97dj7AB4aqC2d8P5na7/gYQOvHH X-Received: by 10.98.18.150 with SMTP id 22mr14242352pfs.180.1515659833566; Thu, 11 Jan 2018 00:37:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515659833; cv=none; d=google.com; s=arc-20160816; b=Z+JXxhrE0IdMmw908Q7bz6JgxfsNO4teFA7pmdZILhldnAAi8KHX51HDomQ4KbxeUc GdoulGpDlFIMfYgB4hMJrQ+x1YrDlvY4Vzi6EE2O38Zdjj+Tnbwwf6COlpJenxdkZIKj 5nIGURx0htpH77CpEMBFj7HXvsyKSk+JVD/xapv6KMvWBYocXfs+TrwLXPDp6nuhJqBW d+aDp2CmkzRoNu7Ftz27zqirs+ZKxjzSYSEFGCjN82ZIPYgjvkSAby8bSyuisDlwnhxF Ygq/Hoid3jSwuYgEVEP1fgm7xEH0dE+0Zf2mk36NRKZuH3YQ7uKp0oxVQcEvLN+kQOJv A82Q== 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=GgIUwmYdPxOzJ8mrMojCFLznoKRpN5ZWQWhoPmu8WDI=; b=DbOSwdzAPp24RH7+cc1891aYBAey3TTx9OQpFLf/HFTiBo6jfffxhTJVEXGbw0z+VX I2H0wpzdSPfYfZEsPCjonDn/mRNi6rqtba7vGS6Rjtz87DUz90wYod0QBQMDIoPwXA3Y y/WrdP8EwxFS6sEFhpaQXy7VPER/oYg4W/CPZkCi2935HOGkWcG3wZ1uMmtbX+5VW/d6 MzUVdzLwEwAGvB0n1qgTggMMhwsCTvuCh8K7wRIY3E0qSDpe3l9G9ssFEq1EhEhM51lq sfDr4mjVpNwqMOW7JwH9UJf6Q+nHf/W3d6QAgnycMHb96vvynPD4OlUUTib6W+c0Zyp3 EILg== 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 64si8601017pgd.45.2018.01.11.00.37.13; Thu, 11 Jan 2018 00:37: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; 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 S932478AbeAKIhM (ORCPT + 28 others); Thu, 11 Jan 2018 03:37:12 -0500 Received: from mout.kundenserver.de ([217.72.192.74]:56910 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932220AbeAKIhJ (ORCPT ); Thu, 11 Jan 2018 03:37:09 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.145]) with ESMTPA (Nemesis) id 0MP0FD-1eTFc70HWJ-006SNa; Thu, 11 Jan 2018 09:36:08 +0100 From: Arnd Bergmann To: Linus Walleij Cc: Arnd Bergmann , William Breathitt Gray , Guenter Roeck , "Maciej S . Szmigiero" , Andy Shevchenko , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] gpio: winbond: fix ISA_BUS_API dependency Date: Thu, 11 Jan 2018 09:35:15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yGWPs1eA11ThW4AEszlNo+Ol1+ I4B9IKyLaAph9oRuf4UsKCU/qvPbCxsXtqGwJA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The newly added GPIO driver for winbond chipsets causes a circular dependency warning in Kconfig: drivers/gpio/Kconfig:13:error: recursive dependency detected! drivers/gpio/Kconfig:13: symbol GPIOLIB is selected by STX104 drivers/iio/adc/Kconfig:699: symbol STX104 depends on ISA_BUS_API arch/Kconfig:830: symbol ISA_BUS_API is selected by GPIO_WINBOND drivers/gpio/Kconfig:701: symbol GPIO_WINBOND depends on GPIOLIB The underlying problem is that ISA_BUS_API is not meant to be selected by device drivers, instead it is provided by the architectures that support ISA add-on card devices, or in case of x86 have this explicitly enabled. This particular driver appears to be different from the other ISA_BUS_API based drivers, in that it is not normally an add-on card (ISA or PC104) but instead is an LPC-attached component on the mainboard. We already support other functionality provided by this chip, at least drivers/watchdog/w83627hf_wdt.c and drivers/hwmon/w83627ehf.c, plus there is a discovery function for this hardware in drivers/parport/parport_pc.c. If we want to use this driver without having to enable CONFIG_EXPERT, it might be better to not use the isa_bus_type for it, but rather turn it into a platform_driver, acpi_driver or add an MFD for it that is shared with the wdt and hwmon portions and does the probing. For now, this patch fixes the dependency by changing 'select' into 'depends on'. Cc: William Breathitt Gray Cc: Guenter Roeck Cc: Maciej S. Szmigiero Cc: Andy Shevchenko Fixes: a0d65009411c ("gpio: winbond: Add driver") Signed-off-by: Arnd Bergmann --- drivers/gpio/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0 diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 440af077cc76..8dbb2280538d 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -700,7 +700,7 @@ config GPIO_TS5500 config GPIO_WINBOND tristate "Winbond Super I/O GPIO support" - select ISA_BUS_API + depends on ISA_BUS_API help This option enables support for GPIOs found on Winbond Super I/O chips.