All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pengpeng Hou <hppiscas@163.com>
To: linusw@kernel.org
Cc: andrea.porta@suse.com, linux-gpio@vger.kernel.org,
	linux-kernel@vger.kernel.org, hppiscas@163.com
Subject: [PATCH] pinctrl: rp1: select GPIO IRQ and MMIO regmap support
Date: Mon, 30 Nov 2026 20:57:41 +0800	[thread overview]
Message-ID: <20261130125741.77341-1-hppiscas@163.com> (raw)

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


             reply	other threads:[~2026-11-30 12:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 12:57 Pengpeng Hou [this message]
2026-11-30 21:54 ` [PATCH] pinctrl: rp1: select GPIO IRQ and MMIO regmap support kernel test robot
2026-11-30 21:55 ` kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261130125741.77341-1-hppiscas@163.com \
    --to=hppiscas@163.com \
    --cc=andrea.porta@suse.com \
    --cc=linusw@kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.