[PATCH 0/2] gpio: sifive: Module support

Samuel Holland posted 2 patches 2 years, 6 months ago
There is a newer version of this series
drivers/gpio/Kconfig       | 2 +-
drivers/gpio/gpio-sifive.c | 4 +++-
drivers/of/irq.c           | 1 +
3 files changed, 5 insertions(+), 2 deletions(-)
[PATCH 0/2] gpio: sifive: Module support
Posted by Samuel Holland 2 years, 6 months ago
With of_irq_count() exported, the SiFive GPIO driver can be built as a
module. This helps to minimize the size of a multiplatform kernel, and
is required by some downstream distributions (Android GKI).


Samuel Holland (2):
  of/irq: Export of_irq_count()
  gpio: sifive: Allow building the driver as a module

 drivers/gpio/Kconfig       | 2 +-
 drivers/gpio/gpio-sifive.c | 4 +++-
 drivers/of/irq.c           | 1 +
 3 files changed, 5 insertions(+), 2 deletions(-)

-- 
2.40.1
Re: [PATCH 0/2] gpio: sifive: Module support
Posted by Palmer Dabbelt 2 years, 6 months ago
On Mon, 17 Jul 2023 13:53:55 PDT (-0700), samuel.holland@sifive.com wrote:
> With of_irq_count() exported, the SiFive GPIO driver can be built as a
> module. This helps to minimize the size of a multiplatform kernel, and
> is required by some downstream distributions (Android GKI).
>
>
> Samuel Holland (2):
>   of/irq: Export of_irq_count()
>   gpio: sifive: Allow building the driver as a module
>
>  drivers/gpio/Kconfig       | 2 +-
>  drivers/gpio/gpio-sifive.c | 4 +++-
>  drivers/of/irq.c           | 1 +
>  3 files changed, 5 insertions(+), 2 deletions(-)

Acked-by: Palmer Dabbelt <palmer@rivosinc.com>

I guess we probably should have just done that the first time around?  
Either way it seems reasonable to me, aside from sorting out the OF 
stuff.