[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAMpxmJWNDLoLEYepj8AtssfYuttOPE9R6D=HF_Nf=Nb0mW_Cyw@mail.gmail.com>
Date:   Tue, 19 Jan 2021 12:10:59 +0100
From:   Bartosz Golaszewski <bgolaszewski@...libre.com>
To:     Randy Dunlap <rdunlap@...radead.org>
Cc:     LKML <linux-kernel@...r.kernel.org>,
        Linus Walleij <linus.walleij@...aro.org>,
        linux-gpio <linux-gpio@...r.kernel.org>,
        Thierry Reding <treding@...dia.com>,
        Greentime Hu <greentime.hu@...ive.com>,
        Yash Shah <yash.shah@...ive.com>
Subject: Re: [PATCH] gpio: sifive: select IRQ_DOMAIN_HIERARCHY rather than
 depend on it
On Tue, Jan 19, 2021 at 4:18 AM Randy Dunlap <rdunlap@...radead.org> wrote:
>
> This is the only driver in the kernel source tree that depends on
> IRQ_DOMAIN_HIERARCHY instead of selecting it. Since it is not a
> visible Kconfig symbol, depending on it (expecting a user to
> set/enable it) doesn't make much sense, so change it to select
> instead of "depends on".
>
> Fixes: 96868dce644d ("gpio/sifive: Add GPIO driver for SiFive SoCs")
> Signed-off-by: Randy Dunlap <rdunlap@...radead.org>
> Cc: Linus Walleij <linus.walleij@...aro.org>
> Cc: Bartosz Golaszewski <bgolaszewski@...libre.com>
> Cc: linux-gpio@...r.kernel.org
> Cc: Thierry Reding <treding@...dia.com>
> Cc: Greentime Hu <greentime.hu@...ive.com>
> Cc: Yash Shah <yash.shah@...ive.com>
> ---
>  drivers/gpio/Kconfig |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> --- linux-next-20210118.orig/drivers/gpio/Kconfig
> +++ linux-next-20210118/drivers/gpio/Kconfig
> @@ -521,7 +521,8 @@ config GPIO_SAMA5D2_PIOBU
>
>  config GPIO_SIFIVE
>         bool "SiFive GPIO support"
> -       depends on OF_GPIO && IRQ_DOMAIN_HIERARCHY
> +       depends on OF_GPIO
> +       select IRQ_DOMAIN_HIERARCHY
>         select GPIO_GENERIC
>         select GPIOLIB_IRQCHIP
>         select REGMAP_MMIO
Applied, thanks!
Bart
Powered by blists - more mailing lists