From: sashiko-bot@kernel.org
To: "Stefan Dösinger" <stefandoesinger@gmail.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v6 11/12] reset: zte: Add a zx297520v3 reset driver
Date: Thu, 02 Jul 2026 20:49:28 +0000 [thread overview]
Message-ID: <20260702204928.CFEF21F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260702-zx29clk-v6-11-377b704f80c4@gmail.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] The driver registers a platform_driver with an `id_table` but fails to declare the `MODULE_DEVICE_TABLE` macro, breaking automatic module loading.
- [Medium] The Kconfig entry for RESET_ZTE_ZX297520V3 does not select MFD_SYSCON, leading to silent probe failures when syscon is disabled.
--
commit a55000e5fe1a8cfd1c7dc0bc7830d18e5a7d4876
Author: Stefan Dösinger <stefandoesinger@gmail.com>
reset: zte: Add a zx297520v3 reset driver
This drives the MFD child devices created by the zx297520v3-crm driver
as well as the aux device created by the zx297520v3-lspclk driver.
> diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig
> index d009eb0849a3b..4dca1f89d22b5 100644
> --- a/drivers/reset/Kconfig
> +++ b/drivers/reset/Kconfig
> @@ -404,6 +404,16 @@ config RESET_UNIPHIER_GLUE
> on UniPhier SoCs. Say Y if you want to control reset signals
> provided by the glue layer.
>
> +config RESET_ZTE_ZX297520V3
> + tristate "ZTE zx297520v3 Reset Driver"
> + depends on ZTE_ZX297520V3_CRM || COMPILE_TEST
[Severity: Medium]
Will this cause silent probe failures if CONFIG_MFD_SYSCON is disabled?
When syscon is not enabled, device_node_to_regmap() is stubbed out to return
ERR_PTR(-ENOTSUPP). This means the driver probe will abort when it tries
to acquire the parent syscon regmap in reset_zx297520v3_probe().
Should this Kconfig entry use select MFD_SYSCON or depends on MFD_SYSCON to
guarantee the syscon APIs are available?
> + default SOC_ZX297520V3
> + help
> + This enables the reset controllers for ZTE zx297520v3 SoCs. The reset
> + controllers are part of the clock and reset management controllers on
[ ... ]
> diff --git a/drivers/reset/reset-zte-zx297520v3.c b/drivers/reset/reset-zte-zx297520v3.c
> new file mode 100644
> index 0000000000000..75a9e6e93cdac
> --- /dev/null
> +++ b/drivers/reset/reset-zte-zx297520v3.c
[ ... ]
> +static const struct platform_device_id reset_zx297520v3_ids[] = {
> + {
> + .name = "zx297520v3-topreset",
> + .driver_data = (kernel_ulong_t)&zx297520v3_topreset_data,
> + },
> + {
> + .name = "zx297520v3-matrixreset",
> + .driver_data = (kernel_ulong_t)&zx297520v3_matrixreset_data,
> + },
> + {
> + .name = "zx297520v3-lspreset",
> + .driver_data = (kernel_ulong_t)&zx297520v3_lspreset_data,
> + },
> + { }
> +};
[Severity: Medium]
Is a MODULE_DEVICE_TABLE declaration needed for this platform device ID table?
Without exporting the table, the driver might fail to load automatically when
built as a module. When the parent MFD core creates the child platform devices
(such as zx297520v3-topreset), udev relies on the modules.alias file to match
the MODALIAS uevent property.
> +
> +static struct platform_driver reset_zx297520v3 = {
> + .probe = reset_zx297520v3_probe,
> + .driver = {
> + .name = "reset-zx297520v3",
> + },
> + .id_table = reset_zx297520v3_ids,
> +};
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260702-zx29clk-v6-0-377b704f80c4@gmail.com?part=11
next prev parent reply other threads:[~2026-07-02 20:49 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-02 20:27 [PATCH v6 00/12] ZTE zx297520v3 clock bindings and driver Stefan Dösinger
2026-07-02 20:27 ` [PATCH v6 01/12] dt-bindings: soc: zte: Add zx297520v3 top clock and reset bindings Stefan Dösinger
2026-07-03 6:03 ` Krzysztof Kozlowski
2026-07-03 6:26 ` Krzysztof Kozlowski
2026-07-03 17:20 ` Stefan Dösinger
2026-07-04 8:35 ` Krzysztof Kozlowski
2026-07-02 20:27 ` [PATCH v6 02/12] dt-bindings: soc: zte: Add zx297520v3 matrix " Stefan Dösinger
2026-07-03 6:07 ` Krzysztof Kozlowski
2026-07-02 20:27 ` [PATCH v6 03/12] dt-bindings: clk: zte: Add zx297520v3 LSP " Stefan Dösinger
2026-07-02 20:27 ` [PATCH v6 04/12] mfd: zx297520v3: Add a clock and reset MFD driver Stefan Dösinger
2026-07-02 20:28 ` [PATCH v6 05/12] clk: zte: Add Clock registration infrastructure Stefan Dösinger
2026-07-02 20:28 ` [PATCH v6 06/12] clk: zte: Add regmap based clocks Stefan Dösinger
2026-07-02 20:28 ` [PATCH v6 07/12] clk: zte: Add zx PLL support infrastructure Stefan Dösinger
2026-07-02 20:50 ` sashiko-bot
2026-07-02 20:28 ` [PATCH v6 08/12] clk: zte: Introduce a driver for zx297520v3 top clocks Stefan Dösinger
2026-07-02 20:41 ` sashiko-bot
2026-07-02 20:28 ` [PATCH v6 09/12] clk: zte: Introduce a driver for zx297520v3 matrix clocks Stefan Dösinger
2026-07-02 20:47 ` sashiko-bot
2026-07-02 20:28 ` [PATCH v6 10/12] clk: zte: Introduce a driver for zx297520v3 LSP clocks Stefan Dösinger
2026-07-02 20:28 ` [PATCH v6 11/12] reset: zte: Add a zx297520v3 reset driver Stefan Dösinger
2026-07-02 20:49 ` sashiko-bot [this message]
2026-07-03 9:16 ` Philipp Zabel
2026-07-03 16:19 ` Stefan Dösinger
2026-07-02 20:28 ` [PATCH v6 12/12] ARM: dts: zte: Declare zx297520v3 CRM device nodes Stefan Dösinger
2026-07-02 20:47 ` 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=20260702204928.CFEF21F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=stefandoesinger@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox