[PATCH] pinctrl: meson: require PINCTRL_MESON=y for Meson8/8b

Pengpeng Hou hppiscas at 163.com
Thu Dec 3 17:52:02 PST 2026


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 at 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




More information about the linux-arm-kernel mailing list