* [PATCH] gpio: GPIO_GRGPIO should depend on OF_GPIO
@ 2024-10-30 10:03 Geert Uytterhoeven
2024-10-30 15:45 ` Andreas Larsson
0 siblings, 1 reply; 5+ messages in thread
From: Geert Uytterhoeven @ 2024-10-30 10:03 UTC (permalink / raw)
To: Bartosz Golaszewski, Linus Walleij, Andreas Larsson
Cc: linux-gpio, sparclinux, Geert Uytterhoeven
While the Aeroflex Gaisler GRGPIO driver has no build-time dependency on
gpiolib-of, it supports only DT-based configuration, and is used only on
DT systems. Hence re-add the dependency on OF_GPIO, to prevent asking
the user about this driver when configuring a kernel without DT support.
Fixes: bc40668def384256 ("gpio: grgpio: drop Kconfig dependency on OF_GPIO")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
drivers/gpio/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index 158ec0d7e52e2e51..a7b27a8541f572d5 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -341,6 +341,7 @@ config GPIO_GRANITERAPIDS
config GPIO_GRGPIO
tristate "Aeroflex Gaisler GRGPIO support"
+ depends on OF_GPIO || COMPILE_TEST
select GPIO_GENERIC
select IRQ_DOMAIN
help
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] gpio: GPIO_GRGPIO should depend on OF_GPIO
2024-10-30 10:03 [PATCH] gpio: GPIO_GRGPIO should depend on OF_GPIO Geert Uytterhoeven
@ 2024-10-30 15:45 ` Andreas Larsson
2024-10-30 16:43 ` Bartosz Golaszewski
0 siblings, 1 reply; 5+ messages in thread
From: Andreas Larsson @ 2024-10-30 15:45 UTC (permalink / raw)
To: Geert Uytterhoeven, Bartosz Golaszewski, Linus Walleij
Cc: linux-gpio, sparclinux
On 2024-10-30 11:03, Geert Uytterhoeven wrote:
> While the Aeroflex Gaisler GRGPIO driver has no build-time dependency on
> gpiolib-of, it supports only DT-based configuration, and is used only on
> DT systems. Hence re-add the dependency on OF_GPIO, to prevent asking
> the user about this driver when configuring a kernel without DT support.
>
> Fixes: bc40668def384256 ("gpio: grgpio: drop Kconfig dependency on OF_GPIO")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
> drivers/gpio/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
> index 158ec0d7e52e2e51..a7b27a8541f572d5 100644
> --- a/drivers/gpio/Kconfig
> +++ b/drivers/gpio/Kconfig
> @@ -341,6 +341,7 @@ config GPIO_GRANITERAPIDS
>
> config GPIO_GRGPIO
> tristate "Aeroflex Gaisler GRGPIO support"
> + depends on OF_GPIO || COMPILE_TEST
> select GPIO_GENERIC
> select IRQ_DOMAIN
> help
Or alternatively:
depends on OF || COMPILE_TEST
Reviewed-by: Andreas Larsson <andreas@gaisler.com>
Thanks,
Andreas
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] gpio: GPIO_GRGPIO should depend on OF_GPIO
2024-10-30 15:45 ` Andreas Larsson
@ 2024-10-30 16:43 ` Bartosz Golaszewski
2024-10-31 9:06 ` Geert Uytterhoeven
0 siblings, 1 reply; 5+ messages in thread
From: Bartosz Golaszewski @ 2024-10-30 16:43 UTC (permalink / raw)
To: Andreas Larsson; +Cc: Geert Uytterhoeven, Linus Walleij, linux-gpio, sparclinux
On Wed, Oct 30, 2024 at 4:45 PM Andreas Larsson <andreas@gaisler.com> wrote:
>
> On 2024-10-30 11:03, Geert Uytterhoeven wrote:
> > While the Aeroflex Gaisler GRGPIO driver has no build-time dependency on
> > gpiolib-of, it supports only DT-based configuration, and is used only on
> > DT systems. Hence re-add the dependency on OF_GPIO, to prevent asking
> > the user about this driver when configuring a kernel without DT support.
> >
> > Fixes: bc40668def384256 ("gpio: grgpio: drop Kconfig dependency on OF_GPIO")
> > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> > ---
> > drivers/gpio/Kconfig | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
> > index 158ec0d7e52e2e51..a7b27a8541f572d5 100644
> > --- a/drivers/gpio/Kconfig
> > +++ b/drivers/gpio/Kconfig
> > @@ -341,6 +341,7 @@ config GPIO_GRANITERAPIDS
> >
> > config GPIO_GRGPIO
> > tristate "Aeroflex Gaisler GRGPIO support"
> > + depends on OF_GPIO || COMPILE_TEST
> > select GPIO_GENERIC
> > select IRQ_DOMAIN
> > help
>
> Or alternatively:
>
> depends on OF || COMPILE_TEST
>
> Reviewed-by: Andreas Larsson <andreas@gaisler.com>
>
> Thanks,
> Andreas
>
Yes, if anything it should depend on CONFIG_OF but is this really an
issue if this shows up as an option in Kconfig? It's not a hard no
from my side and I have heard a similar comment from Torvalds already
but I really don't get it: do people go through all the make config
prompts on a daily basis instead of using some base config and doing
make olddefconfig or menuconfig at worst?
Bartosz
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] gpio: GPIO_GRGPIO should depend on OF_GPIO
2024-10-30 16:43 ` Bartosz Golaszewski
@ 2024-10-31 9:06 ` Geert Uytterhoeven
2024-10-31 12:42 ` Bartosz Golaszewski
0 siblings, 1 reply; 5+ messages in thread
From: Geert Uytterhoeven @ 2024-10-31 9:06 UTC (permalink / raw)
To: Bartosz Golaszewski
Cc: Andreas Larsson, Linus Walleij, linux-gpio, sparclinux
Hi Bartosz,
On Wed, Oct 30, 2024 at 5:44 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote:
> On Wed, Oct 30, 2024 at 4:45 PM Andreas Larsson <andreas@gaisler.com> wrote:
> > On 2024-10-30 11:03, Geert Uytterhoeven wrote:
> > > While the Aeroflex Gaisler GRGPIO driver has no build-time dependency on
> > > gpiolib-of, it supports only DT-based configuration, and is used only on
> > > DT systems. Hence re-add the dependency on OF_GPIO, to prevent asking
> > > the user about this driver when configuring a kernel without DT support.
> > >
> > > Fixes: bc40668def384256 ("gpio: grgpio: drop Kconfig dependency on OF_GPIO")
> > > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> > > --- a/drivers/gpio/Kconfig
> > > +++ b/drivers/gpio/Kconfig
> > > @@ -341,6 +341,7 @@ config GPIO_GRANITERAPIDS
> > >
> > > config GPIO_GRGPIO
> > > tristate "Aeroflex Gaisler GRGPIO support"
> > > + depends on OF_GPIO || COMPILE_TEST
> > > select GPIO_GENERIC
> > > select IRQ_DOMAIN
> > > help
> >
> > Or alternatively:
> >
> > depends on OF || COMPILE_TEST
> >
> > Reviewed-by: Andreas Larsson <andreas@gaisler.com>
> Yes, if anything it should depend on CONFIG_OF but is this really an
> issue if this shows up as an option in Kconfig? It's not a hard no
> from my side and I have heard a similar comment from Torvalds already
> but I really don't get it: do people go through all the make config
> prompts on a daily basis instead of using some base config and doing
> make olddefconfig or menuconfig at worst?
I never use "make olddefconfig" or "make menuconfig".
I always use "make oldconfig". How else do you find out about new
driver support for the hardware you are interested in?
I also compare the resulting config to what I had before, to catch new
dependencies that suddenly make an option unavailable.
The kernel has 20K Kconfig options. It's nearly impossible to configure
a kernel from scratch. Being able to filter out the thousands of
questions that cannot possibly apply to the hardware you are configuring
your kernel for is a big win. Times the number of people doing this...
Thanks for applying ;-)
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] gpio: GPIO_GRGPIO should depend on OF_GPIO
2024-10-31 9:06 ` Geert Uytterhoeven
@ 2024-10-31 12:42 ` Bartosz Golaszewski
0 siblings, 0 replies; 5+ messages in thread
From: Bartosz Golaszewski @ 2024-10-31 12:42 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: Andreas Larsson, Linus Walleij, linux-gpio, sparclinux
On Thu, Oct 31, 2024 at 10:07 AM Geert Uytterhoeven
<geert@linux-m68k.org> wrote:
>
> Hi Bartosz,
>
> On Wed, Oct 30, 2024 at 5:44 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote:
> > On Wed, Oct 30, 2024 at 4:45 PM Andreas Larsson <andreas@gaisler.com> wrote:
> > > On 2024-10-30 11:03, Geert Uytterhoeven wrote:
> > > > While the Aeroflex Gaisler GRGPIO driver has no build-time dependency on
> > > > gpiolib-of, it supports only DT-based configuration, and is used only on
> > > > DT systems. Hence re-add the dependency on OF_GPIO, to prevent asking
> > > > the user about this driver when configuring a kernel without DT support.
> > > >
> > > > Fixes: bc40668def384256 ("gpio: grgpio: drop Kconfig dependency on OF_GPIO")
> > > > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
>
> > > > --- a/drivers/gpio/Kconfig
> > > > +++ b/drivers/gpio/Kconfig
> > > > @@ -341,6 +341,7 @@ config GPIO_GRANITERAPIDS
> > > >
> > > > config GPIO_GRGPIO
> > > > tristate "Aeroflex Gaisler GRGPIO support"
> > > > + depends on OF_GPIO || COMPILE_TEST
> > > > select GPIO_GENERIC
> > > > select IRQ_DOMAIN
> > > > help
> > >
> > > Or alternatively:
> > >
> > > depends on OF || COMPILE_TEST
> > >
> > > Reviewed-by: Andreas Larsson <andreas@gaisler.com>
>
> > Yes, if anything it should depend on CONFIG_OF but is this really an
> > issue if this shows up as an option in Kconfig? It's not a hard no
> > from my side and I have heard a similar comment from Torvalds already
> > but I really don't get it: do people go through all the make config
> > prompts on a daily basis instead of using some base config and doing
> > make olddefconfig or menuconfig at worst?
>
> I never use "make olddefconfig" or "make menuconfig".
> I always use "make oldconfig". How else do you find out about new
> driver support for the hardware you are interested in?
> I also compare the resulting config to what I had before, to catch new
> dependencies that suddenly make an option unavailable.
>
> The kernel has 20K Kconfig options. It's nearly impossible to configure
> a kernel from scratch. Being able to filter out the thousands of
> questions that cannot possibly apply to the hardware you are configuring
> your kernel for is a big win. Times the number of people doing this...
>
> Thanks for applying ;-)
>
Well I didn't. Not yet anyway. Please make it depend on CONFIG_OF if
you really want it.
Bartosz
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-10-31 12:42 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-30 10:03 [PATCH] gpio: GPIO_GRGPIO should depend on OF_GPIO Geert Uytterhoeven
2024-10-30 15:45 ` Andreas Larsson
2024-10-30 16:43 ` Bartosz Golaszewski
2024-10-31 9:06 ` Geert Uytterhoeven
2024-10-31 12:42 ` Bartosz Golaszewski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).