gpio: select GPIOLIB_IRQCHIP for various entries
cover gpio: select GPIOLIB_IRQCHIP for various entries
There was an effort to make irq_chip immutable for several drivers, but kernel test robot reports build errors for:
gpio-mpc8xxx
gpio-pxa
gpio-davinci
Thanks to Bartosz for helping on this.
To avoid potential build failure with random config, select GPIOLIB_IRQCHIP for bcm-kona, grgpio, lpc18xx, timberdale.
Build pass with:
for i in ls arch/arm/configs
do
echo $i
make ARCH=arm $i
make ARCH=arm zImage -j32 > /dev/null
done
And build with arm64 defconfig.
Hope all is good now.
---
Peng Fan (4):
gpio: bcm-kona: select GPIOLIB_IRQCHIP
gpio: grgpio: select GPIOLIB_IRQCHIP
gpio: lpc18xx: select GPIOLIB_IRQCHIP
gpio: timberdale: select GPIOLIB_IRQCHIP
drivers/gpio/Kconfig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
---
base-commit: 4e9d73034196ac8ab496bb47583197b36ba13327
change-id: 20250522-gpio-fix-bea5cc4ace8f
Best regards,
Signature · 1 line
Peng Fan <[email protected]>
PATCH 1/4 gpio: bcm-kona: select GPIOLIB_IRQCHIP
From: Peng Fan <[email protected]>
This driver uses gpiochip_irq_reqres() and gpiochip_irq_relres() which are only built with GPIOLIB_IRQCHIP=y. Add the missing Kconfig select.
--- drivers/gpio/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/gpio/Kconfig +1 -0
@@ -201,6 +201,7 @@ config GPIO_RASPBERRYPI_EXP config GPIO_BCM_KONA bool "Broadcom Kona GPIO" depends on ARCH_BCM_MOBILE || COMPILE_TEST + select GPIOLIB_IRQCHIP help Turn on GPIO support for Broadcom "Kona" chips.
Signature · 1 line
2.37.1
PATCH 2/4 gpio: grgpio: select GPIOLIB_IRQCHIP
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
This driver uses gpiochip_irq_reqres() and gpiochip_irq_relres() which are only built with GPIOLIB_IRQCHIP=y. Add the missing Kconfig select.
--- drivers/gpio/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpio/Kconfig +1 -1
@@ -354,7 +354,7 @@ config GPIO_GRGPIO tristate "Aeroflex Gaisler GRGPIO support" depends on OF || COMPILE_TEST select GPIO_GENERIC - select IRQ_DOMAIN + select GPIOLIB_IRQCHIP help Select this to support Aeroflex Gaisler GRGPIO cores from the GRLIB VHDL IP core library.
Signature · 1 line
2.37.1
PATCH 3/4 gpio: lpc18xx: select GPIOLIB_IRQCHIP
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
This driver uses gpiochip_irq_reqres() and gpiochip_irq_relres() which are only built with GPIOLIB_IRQCHIP=y. Add the missing Kconfig select.
--- drivers/gpio/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/gpio/Kconfig +1 -0
@@ -438,6 +438,7 @@ config GPIO_LPC18XX default y if ARCH_LPC18XX depends on OF_GPIO && (ARCH_LPC18XX || COMPILE_TEST) select IRQ_DOMAIN_HIERARCHY + select GPIOLIB_IRQCHIP help Select this option to enable GPIO driver for NXP LPC18XX/43XX devices.
Signature · 1 line
2.37.1
Re: [PATCH 3/4] gpio: lpc18xx: select GPIOLIB_IRQCHIP
Quoted 7 lines · Peng Fan (OSS)
From: Peng Fan <[email protected]>
This driver uses
gpiochip_irq_reqres()andgpiochip_irq_relres()which are only built with GPIOLIB_IRQCHIP=y. Add the missingKconfigselect.Fixes 289e42df1358 ("gpio: lpc18xx: Make irq_chip immutable")Signed-off-by Peng Fan <[email protected]>
--
Best wishes,
Vladimir
PATCH 4/4 gpio: timberdale: select GPIOLIB_IRQCHIP
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
This driver uses gpiochip_irq_reqres() and gpiochip_irq_relres() which are only built with GPIOLIB_IRQCHIP=y. Add the missing Kconfig select.
--- drivers/gpio/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/gpio/Kconfig +1 -0
@@ -1557,6 +1557,7 @@ config GPIO_TC3589X config GPIO_TIMBERDALE bool "Support for timberdale GPIO IP" depends on MFD_TIMBERDALE + select GPIOLIB_IRQCHIP help Add support for the GPIO IP in the timberdale FPGA.
Signature · 1 line
2.37.1
Bartosz Golaszewski
AppliedFrom: Bartosz Golaszewski <[email protected]>
Quoted 9 lines · Peng Fan (OSS)
There was an effort to make
irq_chipimmutable for several drivers, but kernel test robot reports build errors for:
gpio-mpc8xxx
gpio-pxa
gpio-davinciThanks to Bartosz for helping on this.
[...]
Applied, thanks!
[1/4] gpio: bcm-kona: select GPIOLIB_IRQCHIP
https://git.kernel.org/brgl/linux/c/86fabf1b174069465ea12b4140cb35543fd0c738 [2/4] gpio: grgpio: select GPIOLIB_IRQCHIP https://git.kernel.org/brgl/linux/c/3dff3563cc11e90f046902f0b2be40e82f5ee251 [3/4] gpio: lpc18xx: select GPIOLIB_IRQCHIP https://git.kernel.org/brgl/linux/c/01e4397d0c1c9ae434c574f45359ad0c226a864b [4/4] gpio: timberdale: select GPIOLIB_IRQCHIP https://git.kernel.org/brgl/linux/c/8b8ef309093ff196967a21ee51a9cdb404a13bf6
Best regards,
Signature · 1 line
Bartosz Golaszewski <[email protected]>