From: sashiko-bot@kernel.org
To: Biju <biju.das.au@gmail.com>
Cc: conor+dt@kernel.org, wsa+renesas@sang-engineering.com,
robh@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v3 9/9] arm64: dts: renesas: r9a08g046l48-smarc: Add USB2.0 support
Date: Tue, 07 Jul 2026 14:59:56 +0000 [thread overview]
Message-ID: <20260707145956.C61911F00A3A@smtp.kernel.org> (raw)
In-Reply-To: <20260707143646.245177-10-biju.das.jz@bp.renesas.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] Using `module_platform_driver()` twice in the same C file causes a build failure due to the redefinition of `init_module` and `cleanup_module`.
--
--- Patch [9]: [PATCH v3 9/9] arm64: dts: renesas: r9a08g046l48-smarc: Add USB2.0 support ---
commit 5af51dcc7dc2267ce2a724cd23f6ac8e1361e710
Author: Biju Das <biju.das.jz@bp.renesas.com>
regulator: renesas-usb-vbus-regulator: Add RZ/G3L VBUS regulator support
This commit adds dual USB VBUS regulator support for the RZ/G3L SoC. It
introduces an array of regulator descriptors and a dedicated probe
function to register both regulators. A new platform driver is also added
to handle this dual regulator configuration.
> diff --git a/drivers/regulator/renesas-usb-vbus-regulator.c b/drivers/regulator/renesas-usb-vbus-regulator.c
> index 9ba791bd72eca..9028340008749 100644
> --- a/drivers/regulator/renesas-usb-vbus-regulator.c
> +++ b/drivers/regulator/renesas-usb-vbus-regulator.c
[ ... ]
> @@ -64,6 +108,15 @@ static struct platform_driver rzg2l_usb_vbus_regulator_driver = {
> };
> module_platform_driver(rzg2l_usb_vbus_regulator_driver);
>
> +static struct platform_driver rzg3l_usb_vbus_regulator_driver = {
> + .probe = rzg3l_usb_vbus_regulator_probe,
> + .driver = {
> + .name = "rzg3l-usb-vbus-regulator",
> + .probe_type = PROBE_PREFER_ASYNCHRONOUS,
> + },
> +};
> +module_platform_driver(rzg3l_usb_vbus_regulator_driver);
[Severity: Low]
Will this regression cause a build failure when the driver is compiled as a
module?
Using module_platform_driver() twice in the same C file expands into
module_init() and module_exit() twice.
This creates conflicting global aliases for init_module and cleanup_module,
causing the compiler to flag a redefinition error.
Could these drivers be registered with a custom module_init() function
that registers both, or perhaps combined into a single driver using match data?
> +
> MODULE_AUTHOR("Biju Das <biju.das.jz@bp.renesas.com>");
> MODULE_DESCRIPTION("Renesas RZ/G2L USB Vbus Regulator Driver");
> MODULE_LICENSE("GPL");
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260707143646.245177-1-biju.das.jz@bp.renesas.com?part=9
prev parent reply other threads:[~2026-07-07 14:59 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-07 14:36 [PATCH v3 0/9] Add RZ/G3L USB2.0 host support Biju
2026-07-07 14:36 ` Biju
2026-07-07 14:36 ` [PATCH v3 1/9] dt-bindings: reset: renesas,rzg2l-usbphy-ctrl: Document RZ/G3L support Biju
2026-07-07 14:44 ` sashiko-bot
2026-07-07 14:36 ` [PATCH v3 2/9] dt-bindings: phy: renesas,usb2-phy: Document RZ/G3L PHY bindings Biju
2026-07-07 14:36 ` Biju
2026-07-07 14:36 ` [PATCH v3 3/9] reset: rzg2l-usbphy-ctrl: Introduce info struct for match data Biju
2026-07-07 14:36 ` [PATCH v3 4/9] reset: rzg2l-usbphy-ctrl: Add RZ/G3L support Biju
2026-07-07 14:36 ` [PATCH v3 5/9] regulator: renesas-usb-vbus-regulator: Add RZ/G3L VBUS regulator support Biju
2026-07-07 15:08 ` Mark Brown
2026-07-08 8:10 ` Biju Das
2026-07-08 8:28 ` Geert Uytterhoeven
2026-07-08 10:38 ` Mark Brown
2026-07-08 14:29 ` Biju Das
2026-07-07 14:36 ` [PATCH v3 6/9] phy: renesas: phy-rcar-gen3-usb2: Add RZ/G3L support Biju
2026-07-07 14:36 ` Biju
2026-07-07 14:51 ` sashiko-bot
2026-07-07 14:36 ` [PATCH v3 7/9] phy: renesas: phy-rcar-gen3-usb2: Fix devm action registration for disabled VBUS regulator Biju
2026-07-07 14:36 ` Biju
2026-07-07 15:01 ` sashiko-bot
2026-07-07 14:36 ` [PATCH v3 8/9] arm64: dts: renesas: r9a08g046: Add USB2.0 device nodes Biju
2026-07-07 14:54 ` sashiko-bot
2026-07-07 14:36 ` [PATCH v3 9/9] arm64: dts: renesas: r9a08g046l48-smarc: Add USB2.0 support Biju
2026-07-07 14:59 ` sashiko-bot [this message]
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=20260707145956.C61911F00A3A@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=biju.das.au@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=wsa+renesas@sang-engineering.com \
/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.