mirror of https://lore.kernel.org/linux-amlogic/
 help / color / mirror / Atom feed
* [PATCH] pinctrl: meson: require PINCTRL_MESON=y for Meson8/8b
@ 2026-12-04  1:52 Pengpeng Hou
  0 siblings, 0 replies; only message in thread
From: Pengpeng Hou @ 2026-12-04  1:52 UTC (permalink / raw)
  To: Linus Walleij, Neil Armstrong, Kevin Hilman
  Cc: Jerome Brunet, Martin Blumenstingl, linux-gpio, linux-arm-kernel,
	linux-amlogic, linux-kernel, Pengpeng Hou

The Meson8 and Meson8b options select built-in driver objects under
PINCTRL_MESON. If the containing directory is entered for modules,
selecting these boolean options does not build the intended objects.

Require a built-in Meson core for these two built-in drivers. This does
not add module support to either one.

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

Fixes: 9c65441ec823 ("pinctrl/meson: enable building as modules")
Signed-off-by: Pengpeng Hou <hppiscas@163.com>
---
The original patch was prepared with Gemini. Codex assisted with this
review and revision (Assisted-by: gpt 5).
On x86-64 with COMPILE_TEST, Kconfig accepted both Meson8 options with
PINCTRL_MESON=m before the change, rejected both afterwards, and kept
both available with PINCTRL_MESON=y. This was a configuration test; no
target binary was built.

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

diff --git a/drivers/pinctrl/meson/Kconfig b/drivers/pinctrl/meson/Kconfig
index 1af4fc320f42bb893ba9f42f4bb0b6d7e034e512..9f5937ca4171b78078153116e934290dff4319b6 100644
--- a/drivers/pinctrl/meson/Kconfig
+++ b/drivers/pinctrl/meson/Kconfig
@@ -14,12 +14,14 @@ if PINCTRL_MESON
 
 config PINCTRL_MESON8
 	bool "Meson 8 SoC pinctrl driver"
+	depends on PINCTRL_MESON=y
 	depends on ARM || COMPILE_TEST
 	select PINCTRL_MESON8_PMX
 	default ARCH_MESON
 
 config PINCTRL_MESON8B
 	bool "Meson 8b SoC pinctrl driver"
+	depends on PINCTRL_MESON=y
 	depends on ARM || COMPILE_TEST
 	select PINCTRL_MESON8_PMX
 	default ARCH_MESON

base-commit: d06ce6f1eb5eeffd4ebcfde345dc34a98131d106


_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-12-04  1:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-04  1:52 [PATCH] pinctrl: meson: require PINCTRL_MESON=y for Meson8/8b Pengpeng Hou

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®