From: Pengpeng Hou <hppiscas@163.com>
To: Linus Walleij <linusw@kernel.org>,
Neil Armstrong <neil.armstrong@linaro.org>,
Kevin Hilman <khilman@baylibre.com>
Cc: Jerome Brunet <jbrunet@baylibre.com>,
Martin Blumenstingl <martin.blumenstingl@googlemail.com>,
linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org,
Pengpeng Hou <hppiscas@163.com>
Subject: [PATCH] pinctrl: meson: require PINCTRL_MESON=y for Meson8/8b
Date: Fri, 4 Dec 2026 09:52:02 +0800 [thread overview]
Message-ID: <179634912215.74470.18270513836413876412@163.com> (raw)
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
reply other threads:[~2026-12-04 1:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=179634912215.74470.18270513836413876412@163.com \
--to=hppiscas@163.com \
--cc=jbrunet@baylibre.com \
--cc=khilman@baylibre.com \
--cc=linusw@kernel.org \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=martin.blumenstingl@googlemail.com \
--cc=neil.armstrong@linaro.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 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®