From: sashiko-bot@kernel.org
To: "Jisheng Zhang" <jszhang@kernel.org>
Cc: devicetree@vger.kernel.org, linux-clk@vger.kernel.org,
linux-gpio@vger.kernel.org, mfd@lists.linux.dev, robh@kernel.org,
conor+dt@kernel.org, lee@kernel.org
Subject: Re: [PATCH v4 03/13] pinctrl: berlin: enable module build support
Date: Fri, 04 Dec 2026 15:03:05 +0000 [thread overview]
Message-ID: <sashiko-outbox-250051@kernel.org> (raw)
In-Reply-To: <20261204140732.31223-4-jszhang@kernel.org>
Thank you for your contribution! Sashiko AI review found 3 potential
issues to consider:
- [Medium] pinctrl: berlin: PINCTRL_BERLIN remains bool and built via
obj-y
- [Low] pinctrl: berlin: unrelated pinconf changes mixed into module
build commit
- [Low] pinctrl: berlin: pinctrl patches not split out as requested by
maintainer
--
commit 3e5d5d3d1e00faf42d4508d236eb2eb377780414
Author: Jisheng Zhang <jszhang@kernel.org>
pinctrl: berlin: enable module build support
This commit converts berlin_pinctrl_build_state() allocations to devm_*
helpers, exports berlin_pinctrl_probe() and berlin_pinctrl_probe_regmap(),
and adds module metadata to drivers/pinctrl/berlin/berlin.c.
> diff --git a/drivers/pinctrl/berlin/berlin.c b/drivers/pinctrl/berlin/berlin.c
> index 8a612ce2d1d36..9337de1973af9 100644
> --- a/drivers/pinctrl/berlin/berlin.c
> +++ b/drivers/pinctrl/berlin/berlin.c
[ ... ]
> @@ -326,6 +322,7 @@ int berlin_pinctrl_probe_regmap(struct platform_device *pdev,
>
> return 0;
> }
> +EXPORT_SYMBOL_GPL(berlin_pinctrl_probe_regmap);
[Severity: Low]
As reported by Linus Walleij on v2 [1], should the pinctrl patches be split
out and sent separately for the pinctrl tree?
The core Berlin pinctrl patches have no build-time dependencies on the rest
of the series, and commit "pinctrl: berlin: add Synaptics SL2610 pin
controller support" only references MFD_SL2610_SYSCON in Kconfig.
> int berlin_pinctrl_probe(struct platform_device *pdev,
> const struct berlin_pinctrl_desc *desc)
> @@ -340,3 +337,7 @@ int berlin_pinctrl_probe(struct platform_device *pdev,
>
> return berlin_pinctrl_probe_regmap(pdev, desc, regmap);
> }
> +EXPORT_SYMBOL_GPL(berlin_pinctrl_probe);
> +
> +MODULE_LICENSE("GPL");
> +MODULE_DESCRIPTION("pinctrl library for Synaptics SoCs");
[Severity: Medium]
Can berlin.c actually be built as a loadable module with these changes?
PINCTRL_BERLIN in drivers/pinctrl/berlin/Kconfig is still bool, so selecting
it from a modular SoC driver such as PINCTRL_SL2610 forces berlin.o into
vmlinux instead of building berlin.ko.
In addition, drivers/pinctrl/berlin/Makefile still uses obj-y += berlin.o
instead of obj-$(CONFIG_PINCTRL_BERLIN) += berlin.o. When PINCTRL_BERLIN is
tristate, drivers/pinctrl/Makefile descends via obj-m and drops obj-y, so
berlin.ko is never built and modular SoC drivers fail to link.
> diff --git a/drivers/pinctrl/berlin/berlin.h b/drivers/pinctrl/berlin/berlin.h
> index 7e7096842eda0..8ff70d682593a 100644
> --- a/drivers/pinctrl/berlin/berlin.h
> +++ b/drivers/pinctrl/berlin/berlin.h
> @@ -20,6 +20,8 @@ struct berlin_desc_group {
> u16 offset;
> u8 bit_width;
> u8 lsb;
> + u16 conf_offset;
> + u8 conf_bits;
> struct berlin_desc_function *functions;
> };
>
> @@ -28,6 +30,19 @@ struct berlin_pinctrl_desc {
> unsigned ngroups;
> };
>
> +#define BERLIN_PINCTRLCONF_GROUP(_name, _offset, _width, _lsb, \
> + _conf_offset, _conf_bits, ...) \
> + { \
> + .name = _name, \
> + .offset = _offset, \
> + .bit_width = _width, \
> + .lsb = _lsb, \
> + .conf_offset = _conf_offset, \
> + .conf_bits = _conf_bits, \
> + .functions = (struct berlin_desc_function[]){ \
> + __VA_ARGS__, { } }, \
> + }
> +
> #define BERLIN_PINCTRL_GROUP(_name, _offset, _width, _lsb, ...) \
> { \
> .name = _name, \
[Severity: Low]
Do these pinconf additions belong in commit "pinctrl: berlin: add optional
pinconf support" instead? conf_offset, conf_bits, and
BERLIN_PINCTRLCONF_GROUP are unrelated to module build support and are not
mentioned in the commit message.
[1] https://lore.kernel.org/r/CAD++jL=TE0pF60vR-Y==z2LDfs4n2rvfZ5FMOuEoFsD2PwMXhw@mail.gmail.com
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204140732.31223-1-jszhang@kernel.org?part=3
next prev parent reply other threads:[~2026-12-04 15:03 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 14:07 [PATCH v4 00/13] arm64: add Synaptics SL2610 SoCs and RDK boards Jisheng Zhang
2026-12-04 14:07 ` [PATCH v4 01/13] arm64: kconfig: let ARCH_BERLIN cover Synaptics arm64 SoCs Jisheng Zhang
2026-12-04 14:07 ` [PATCH v4 02/13] pinctrl: berlin: use u16 instead of u8 for the offset Jisheng Zhang
2026-12-04 14:07 ` [PATCH v4 03/13] pinctrl: berlin: enable module build support Jisheng Zhang
2026-12-04 15:03 ` sashiko-bot [this message]
2026-12-04 14:07 ` [PATCH v4 04/13] pinctrl: berlin: add optional pinconf support Jisheng Zhang
2026-12-04 15:22 ` sashiko-bot
2026-12-04 14:07 ` [PATCH v4 05/13] dt-bindings: soc: synaptics: add SL2610 system controllers Jisheng Zhang
2026-12-04 15:41 ` sashiko-bot
2026-12-04 14:07 ` [PATCH v4 06/13] mfd: synaptics: add SL2610 system controller support Jisheng Zhang
2026-12-04 15:58 ` sashiko-bot
2026-12-04 14:07 ` [PATCH v4 07/13] reset: add Synaptics SL2610 reset " Jisheng Zhang
2026-12-04 16:24 ` sashiko-bot
2026-12-04 14:07 ` [PATCH v4 08/13] pinctrl: berlin: add Synaptics SL2610 pin " Jisheng Zhang
2026-12-04 16:51 ` sashiko-bot
2026-12-04 14:07 ` [PATCH v4 09/13] clk: berlin: add Synaptics clock controller helpers Jisheng Zhang
2026-12-04 17:13 ` sashiko-bot
2026-12-04 14:07 ` [PATCH v4 10/13] clk: berlin: add Synaptics SL2610 clocks and PLLs Jisheng Zhang
2026-12-04 17:39 ` sashiko-bot
2026-12-04 14:07 ` [PATCH v4 11/13] dt-bindings: arm: berlin: add Synaptics SL2610 SoCs and RDK boards Jisheng Zhang
2026-12-04 14:07 ` [PATCH v4 12/13] arm64: dts: synaptics: add SL2610 family SoCs Jisheng Zhang
2026-12-04 18:05 ` sashiko-bot
2026-12-04 14:07 ` [PATCH v4 13/13] arm64: dts: synaptics: add SL2610 family RDK boards Jisheng Zhang
2026-12-04 18:19 ` sashiko-bot
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=sashiko-outbox-250051@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jszhang@kernel.org \
--cc=lee@kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=mfd@lists.linux.dev \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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.