mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] pinctrl: rp1: select GPIO IRQ and MMIO regmap support
@ 2026-11-30 12:57 Pengpeng Hou
  2026-11-30 21:54 ` kernel test robot
  2026-11-30 21:55 ` kernel test robot
  0 siblings, 2 replies; 3+ messages in thread
From: Pengpeng Hou @ 2026-11-30 12:57 UTC (permalink / raw)
  To: linusw; +Cc: andrea.porta, linux-gpio, linux-kernel, hppiscas

The RP1 pin controller initializes MMIO regmaps and accesses the IRQ
portion of struct gpio_chip, but PINCTRL_RP1 does not select either
the MMIO backend or the GPIO IRQ support. Configurations without
those providers fail to build or link the driver.

Select REGMAP_MMIO and GPIOLIB_IRQCHIP, together with its GPIOLIB
prerequisite. Keep these requirements local to the pin controller
rather than relying on another RP1 function to enable them.

The issue was found by our static-analysis tool and manually reviewed.

Fixes: 4732f079cd19 ("pinctrl: rp1: Implement RaspberryPi RP1 gpio support")
Signed-off-by: Pengpeng Hou <hppiscas@163.com>
---
AI assistance: gpt 5 (patch preparation and review).

 drivers/pinctrl/Kconfig | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig
index dc71383..72dc490 100644
--- a/drivers/pinctrl/Kconfig
+++ b/drivers/pinctrl/Kconfig
@@ -709,6 +709,9 @@ config PINCTRL_RP1
 	select PINMUX
 	select PINCONF
 	select GENERIC_PINCONF
+	select GPIOLIB
+	select GPIOLIB_IRQCHIP
+	select REGMAP_MMIO
 	help
 	  Enable the gpio and pinctrl/mux driver for RaspberryPi RP1
 	  multi function device.

base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-30 21:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-30 12:57 [PATCH] pinctrl: rp1: select GPIO IRQ and MMIO regmap support Pengpeng Hou
2026-11-30 21:54 ` kernel test robot
2026-11-30 21:55 ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®