2018-02-23 14:56:26

by Maciej S. Szmigiero

[permalink] [raw]
Subject: [PATCH] Revert "gpio: winbond: fix ISA_BUS_API dependency"

This reverts commit 92a8046c9d952a2a7d21dfcd3afadc72a0bc0f72.

Now that the patch series changing ISA_BUS_API dependency to selection
was merged this reversion will do the same for gpio-winbond driver to
make it consistent with other ISA bus gpio drivers.

Signed-off-by: Maciej S. Szmigiero <[email protected]>
---
drivers/gpio/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index dff99871bca8..6d481ef03623 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -722,7 +722,7 @@ config GPIO_TS5500

config GPIO_WINBOND
tristate "Winbond Super I/O GPIO support"
- depends on ISA_BUS_API
+ select ISA_BUS_API
help
This option enables support for GPIOs found on Winbond Super I/O
chips.


2018-02-23 15:20:01

by Arnd Bergmann

[permalink] [raw]
Subject: Re: [PATCH] Revert "gpio: winbond: fix ISA_BUS_API dependency"

On Fri, Feb 23, 2018 at 3:55 PM, Maciej S. Szmigiero
<[email protected]> wrote:
> This reverts commit 92a8046c9d952a2a7d21dfcd3afadc72a0bc0f72.
>
> Now that the patch series changing ISA_BUS_API dependency to selection
> was merged this reversion will do the same for gpio-winbond driver to
> make it consistent with other ISA bus gpio drivers.
>
> Signed-off-by: Maciej S. Szmigiero <[email protected]>

I still see a number of other users of 'depends on ISA_BUS_API' in linux-next:

drivers/gpio/Kconfig: depends on PC104 && ISA_BUS_API
drivers/gpio/Kconfig: depends on PC104 && ISA_BUS_API
drivers/gpio/Kconfig: depends on PC104 && ISA_BUS_API
drivers/gpio/Kconfig: depends on PC104 && ISA_BUS_API
drivers/gpio/Kconfig: depends on ISA_BUS_API
drivers/gpio/Kconfig: depends on ISA_BUS_API
drivers/iio/adc/Kconfig: depends on PC104 && X86 && ISA_BUS_API
drivers/iio/counter/Kconfig: depends on PC104 && X86 && ISA_BUS_API
drivers/iio/dac/Kconfig: depends on X86 && ISA_BUS_API
drivers/watchdog/Kconfig: depends on X86 && ISA_BUS_API

Did you change all of the above? I would really like to avoid mixing
'select' and 'depends on' here, as that will likely cause other circular
dependencies in the future.

Arnd

2018-02-23 15:21:43

by Andy Shevchenko

[permalink] [raw]
Subject: Re: [PATCH] Revert "gpio: winbond: fix ISA_BUS_API dependency"

On Fri, 2018-02-23 at 16:19 +0100, Arnd Bergmann wrote:
> On Fri, Feb 23, 2018 at 3:55 PM, Maciej S. Szmigiero
> <[email protected]> wrote:


> I would really like to avoid mixing
> 'select' and 'depends on' here, as that will likely cause other
> circular
> dependencies in the future.

Agree. And it doesn't make sense to do in a separate changes.

--
Andy Shevchenko <[email protected]>
Intel Finland Oy

2018-02-23 15:27:05

by William Breathitt Gray

[permalink] [raw]
Subject: Re: [PATCH] Revert "gpio: winbond: fix ISA_BUS_API dependency"

On Fri, Feb 23, 2018 at 04:19:01PM +0100, Arnd Bergmann wrote:
>On Fri, Feb 23, 2018 at 3:55 PM, Maciej S. Szmigiero
><[email protected]> wrote:
>> This reverts commit 92a8046c9d952a2a7d21dfcd3afadc72a0bc0f72.
>>
>> Now that the patch series changing ISA_BUS_API dependency to selection
>> was merged this reversion will do the same for gpio-winbond driver to
>> make it consistent with other ISA bus gpio drivers.
>>
>> Signed-off-by: Maciej S. Szmigiero <[email protected]>
>
>I still see a number of other users of 'depends on ISA_BUS_API' in linux-next:
>
>drivers/gpio/Kconfig: depends on PC104 && ISA_BUS_API
>drivers/gpio/Kconfig: depends on PC104 && ISA_BUS_API
>drivers/gpio/Kconfig: depends on PC104 && ISA_BUS_API
>drivers/gpio/Kconfig: depends on PC104 && ISA_BUS_API
>drivers/gpio/Kconfig: depends on ISA_BUS_API
>drivers/gpio/Kconfig: depends on ISA_BUS_API
>drivers/iio/adc/Kconfig: depends on PC104 && X86 && ISA_BUS_API
>drivers/iio/counter/Kconfig: depends on PC104 && X86 && ISA_BUS_API
>drivers/iio/dac/Kconfig: depends on X86 && ISA_BUS_API
>drivers/watchdog/Kconfig: depends on X86 && ISA_BUS_API
>
>Did you change all of the above? I would really like to avoid mixing
>'select' and 'depends on' here, as that will likely cause other circular
>dependencies in the future.
>
> Arnd

Those 'depends on' for ISA_BUS_API are resolved in the devel branch of
the linux-gpio tree; this revert patch should be applied there before
being picked up later for linux-next.

William Breathitt Gray

2018-02-26 10:30:17

by Linus Walleij

[permalink] [raw]
Subject: Re: [PATCH] Revert "gpio: winbond: fix ISA_BUS_API dependency"

On Fri, Feb 23, 2018 at 3:55 PM, Maciej S. Szmigiero
<[email protected]> wrote:

> This reverts commit 92a8046c9d952a2a7d21dfcd3afadc72a0bc0f72.
>
> Now that the patch series changing ISA_BUS_API dependency to selection
> was merged this reversion will do the same for gpio-winbond driver to
> make it consistent with other ISA bus gpio drivers.
>
> Signed-off-by: Maciej S. Szmigiero <[email protected]>

Patch applied.

Yours,
Linus Walleij