From: sashiko-bot@kernel.org
To: "Stefan Dösinger" <stefandoesinger@gmail.com>
Cc: lee@kernel.org, linux-phy@lists.infradead.org, robh@kernel.org,
neil.armstrong@linaro.org, olteanv@gmail.com,
mfd@lists.linux.dev, linux-clk@vger.kernel.org, vkoul@kernel.org,
conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v12 02/12] dt-bindings: clk: zte: Add zx297520v3 matrix clock and reset controller
Date: Wed, 23 Sep 2026 18:37:03 +0000 [thread overview]
Message-ID: <20260923183704.3E37F1F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260923-zx29clk-v12-2-9c243796b6d2@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] dt-bindings: clk: zte: overlapping macro indices lack controller namespaces
--
commit dca4f092e4746ba80e9fc5a9d7398c954138a93c
Author: Stefan Dösinger <stefandoesinger@gmail.com>
dt-bindings: clk: zte: Add zx297520v3 matrix clock and reset controller
This commit introduces the matrix clock and reset controller for the ZTE
zx297520v3 SoC. It adds the bindings documentation, along with definitions
for the clock and reset indices.
> diff --git a/include/dt-bindings/clock/zte,zx297520v3-clk.h b/include/dt-bindings/clock/zte,zx297520v3-clk.h
> index 1bc9267e4d62e..d98bc38635b03 100644
> --- a/include/dt-bindings/clock/zte,zx297520v3-clk.h
> +++ b/include/dt-bindings/clock/zte,zx297520v3-clk.h
> @@ -69,4 +69,49 @@
> #define ZX297520V3_GSM_156M 60
> #define ZX297520V3_ABB_WCLK 61
>
> +#define ZX297520V3_SYS_TIMER_WCLK 0
> +#define ZX297520V3_CPU_WCLK 1
[Severity: Low]
Is there a risk of unintended misconfigurations because these macros restart
the index space at 0 without a distinguishing prefix like MATRIXCRM_?
Since they overlap directly with the topcrm macros defined earlier in the
same file, both sets evaluate to identical integers (e.g., both evaluate
to 0).
Could this regression lead to a mismatched hardware configuration at runtime
if a topcrm macro is accidentally used with a matrixcrm phandle?
[ ... ]
> diff --git a/include/dt-bindings/reset/zte,zx297520v3-reset.h b/include/dt-bindings/reset/zte,zx297520v3-reset.h
> index 4a0eaec0e9816..54e5b24f859af 100644
> --- a/include/dt-bindings/reset/zte,zx297520v3-reset.h
> +++ b/include/dt-bindings/reset/zte,zx297520v3-reset.h
> @@ -27,4 +27,17 @@
> #define ZX297520V3_USB_RESET 18
> #define ZX297520V3_HSIC_RESET 19
>
> +#define ZX297520V3_CPU_RESET 0
> +#define ZX297520V3_ZSP_BUS_RESET 1
[Severity: Low]
Does restarting the index space at 0 for these matrixcrm resets introduce
a similar regression risk as the clock indices?
These macros similarly lack a namespace prefix and evaluate to the same
integers as the topcrm reset macros.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260923-zx29clk-v12-0-9c243796b6d2@gmail.com?part=2
next prev parent reply other threads:[~2026-09-23 18:37 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-23 18:28 [PATCH v12 00/12] ZTE zx297520v3 clock bindings and driver Stefan Dösinger
2026-09-23 18:28 ` [PATCH v12 01/12] dt-bindings: clk: zte: Add zx297520v3 top clock and reset controller Stefan Dösinger
2026-09-23 18:33 ` sashiko-bot
2026-09-23 18:28 ` [PATCH v12 02/12] dt-bindings: clk: zte: Add zx297520v3 matrix " Stefan Dösinger
2026-09-23 18:37 ` sashiko-bot [this message]
2026-09-23 18:28 ` [PATCH v12 03/12] dt-bindings: clk: zte: Add zx297520v3 LSP " Stefan Dösinger
2026-09-23 18:32 ` sashiko-bot
2026-09-23 18:28 ` [PATCH v12 04/12] mfd: zx297520v3: Add a clock and reset MFD driver Stefan Dösinger
2026-09-23 18:35 ` sashiko-bot
2026-09-24 14:15 ` Lee Jones
2026-09-23 18:28 ` [PATCH v12 05/12] clk: zte: Add Clock registration infrastructure Stefan Dösinger
2026-09-23 18:36 ` sashiko-bot
2026-09-23 18:28 ` [PATCH v12 06/12] clk: zte: Add regmap-based clocks Stefan Dösinger
2026-09-23 18:38 ` sashiko-bot
2026-09-23 18:28 ` [PATCH v12 07/12] clk: zte: Add zx PLL support infrastructure Stefan Dösinger
2026-09-23 18:42 ` sashiko-bot
2026-09-23 18:28 ` [PATCH v12 08/12] clk: zte: Introduce a driver for zx297520v3 top clocks Stefan Dösinger
2026-09-23 18:44 ` sashiko-bot
2026-09-23 18:28 ` [PATCH v12 09/12] clk: zte: Introduce a driver for zx297520v3 matrix clocks Stefan Dösinger
2026-09-23 18:40 ` sashiko-bot
2026-09-23 19:06 ` Stefan Dösinger
2026-09-23 18:28 ` [PATCH v12 10/12] clk: zte: Introduce a driver for zx297520v3 LSP clocks Stefan Dösinger
2026-09-23 18:40 ` sashiko-bot
2026-09-23 18:28 ` [PATCH v12 11/12] reset: zte: Add a zx297520v3 reset driver Stefan Dösinger
2026-09-23 18:45 ` sashiko-bot
2026-09-23 18:28 ` [PATCH v12 12/12] ARM: dts: zte: Declare zx297520v3 CRM device nodes Stefan Dösinger
2026-09-23 18:39 ` 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=20260923183704.3E37F1F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=lee@kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=mfd@lists.linux.dev \
--cc=neil.armstrong@linaro.org \
--cc=olteanv@gmail.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=stefandoesinger@gmail.com \
--cc=vkoul@kernel.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