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

* Re: [PATCH] pinctrl: rp1: select GPIO IRQ and MMIO regmap support
  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
  1 sibling, 0 replies; 3+ messages in thread
From: kernel test robot @ 2026-11-30 21:54 UTC (permalink / raw)
  To: Pengpeng Hou, linusw
  Cc: oe-kbuild-all, andrea.porta, linux-gpio, linux-kernel, hppiscas

Hi Pengpeng,

kernel test robot noticed the following build errors:

[auto build test ERROR on fe6ff8d5d675c01793b9f051d16055dd4aa75244]

url:    https://github.com/intel-lab-lkp/linux/commits/Pengpeng-Hou/pinctrl-rp1-select-GPIO-IRQ-and-MMIO-regmap-support/20261130-205741
base:   fe6ff8d5d675c01793b9f051d16055dd4aa75244
patch link:    https://lore.kernel.org/r/20261130125741.77341-1-hppiscas%40163.com
patch subject: [PATCH] pinctrl: rp1: select GPIO IRQ and MMIO regmap support
config: x86_64-rhel-9.4 (attached as .config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261201/20261201052231.klYZZ3QS-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261201052231.klYZZ3QS-lkp@intel.com/

All errors (new ones prefixed by >>):

>> error: recursive dependency detected!
   symbol GPIOLIB is selected by PINCTRL_RP1
   symbol PINCTRL_RP1 depends on MISC_RP1
   symbol MISC_RP1 depends on OF_IRQ
   symbol OF_IRQ depends on IRQ_DOMAIN
   symbol IRQ_DOMAIN is selected by GENERIC_IRQ_CHIP
   symbol GENERIC_IRQ_CHIP is selected by GPIO_MVEBU
   symbol GPIO_MVEBU depends on GPIOLIB
   For a resolution refer to Documentation/kbuild/kconfig-language.rst
   subsection "Kconfig recursive dependency limitations"

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

* Re: [PATCH] pinctrl: rp1: select GPIO IRQ and MMIO regmap support
  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
  1 sibling, 0 replies; 3+ messages in thread
From: kernel test robot @ 2026-11-30 21:55 UTC (permalink / raw)
  To: Pengpeng Hou, linusw
  Cc: oe-kbuild-all, andrea.porta, linux-gpio, linux-kernel, hppiscas

Hi Pengpeng,

kernel test robot noticed the following build errors:

[auto build test ERROR on fe6ff8d5d675c01793b9f051d16055dd4aa75244]

url:    https://github.com/intel-lab-lkp/linux/commits/Pengpeng-Hou/pinctrl-rp1-select-GPIO-IRQ-and-MMIO-regmap-support/20261130-205741
base:   fe6ff8d5d675c01793b9f051d16055dd4aa75244
patch link:    https://lore.kernel.org/r/20261130125741.77341-1-hppiscas%40163.com
patch subject: [PATCH] pinctrl: rp1: select GPIO IRQ and MMIO regmap support
config: x86_64-rhel-9.4 (attached as .config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261201/20261201055259.DmcqG333-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261201055259.DmcqG333-lkp@intel.com/

All errors (new ones prefixed by >>):

>> error: recursive dependency detected!
   symbol GPIOLIB is selected by PINCTRL_RP1
   symbol PINCTRL_RP1 depends on MISC_RP1
   symbol MISC_RP1 depends on OF_IRQ
   symbol OF_IRQ depends on IRQ_DOMAIN
   symbol IRQ_DOMAIN is selected by GENERIC_IRQ_CHIP
   symbol GENERIC_IRQ_CHIP is selected by GPIO_MVEBU
   symbol GPIO_MVEBU depends on GPIOLIB
   For a resolution refer to Documentation/kbuild/kconfig-language.rst
   subsection "Kconfig recursive dependency limitations"

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ 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®