[PATCH v12 09/12] clk: zte: Introduce a driver for zx297520v3 matrix clocks

sashiko-bot at kernel.org sashiko-bot at kernel.org
Wed Sep 23 11:40:50 PDT 2026


Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] clk: zte: missing DT export for ZX297520V3_RFFE_WCLK
--

commit 4d2c5025ee60ae5cdf0e636caff70b2cdc8a3e60
Author: Stefan Dösinger <stefandoesinger at gmail.com>

clk: zte: Introduce a driver for zx297520v3 matrix clocks

This clock controller controls high speed devices: CPU, DMA, RAM, SDIO,
Ethernet. The only non-clock, non-reset registers I have spotted here
are hardware spinlocks.

> diff --git a/drivers/clk/zte/clk-zx297520v3.c b/drivers/clk/zte/clk-zx297520v3.c
> index 68bfeab84d745..92b56571b1556 100644
> --- a/drivers/clk/zte/clk-zx297520v3.c
> +++ b/drivers/clk/zte/clk-zx297520v3.c

[ ... ]

> +static const unsigned int zx297520v3_matrix_exports[] = {
> +	[ZX297520V3_SYS_TIMER_WCLK] =		ZX_CLK_SYS_TIMER_WCLK,
> +	[ZX297520V3_CPU_WCLK] =			ZX_CLK_CPU_WCLK,

[ ... ]

> +	[ZX297520V3_PDCFG_WCLK] =		ZX_CLK_PDCFG_WCLK,
> +	[ZX297520V3_PDCFG_PCLK] =		ZX_CLK_PDCFG_PCLK,
> +	[ZX297520V3_SSC_WCLK] =			ZX_CLK_SSC_WCLK,
> +	[ZX297520V3_SSC_PCLK] =			ZX_CLK_SSC_PCLK,

[Severity: Medium]
Is the mapping for ZX297520V3_RFFE_WCLK intentionally missing from
zx297520v3_matrix_exports?

Because this mapping is omitted, any device querying for the RFFE work clock
via the device tree will be silently mapped to index 0. This index corresponds
to the ZX_CLK_MATRIX_OSC26M_D4 clock rather than the intended rffe-wclk.

Could this incorrect mapping break the LTE radio hardware and potentially
disrupt actual consumers of the 6.5 MHz matrix-osc26m-d4 clock when a driver
probes and operates on the hardware block?

> +	[ZX297520V3_AXI_WCLK] =			ZX_CLK_AXI_WCLK,
> +	[ZX297520V3_GMAC_WCLK] =		ZX_CLK_GMAC_WCLK,
> +	[ZX297520V3_GMAC_PCLK] =		ZX_CLK_GMAC_PCLK,

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260923-zx29clk-v12-0-9c243796b6d2@gmail.com?part=9



More information about the linux-phy mailing list