[PATCH] clk: rockchip: fix finding of maximum clock ID
Yao Zi
ziyao at disroot.org
Mon Sep 16 00:31:25 PDT 2024
On Sat, Sep 14, 2024 at 08:48:53AM +0200, Sebastian Reichel wrote:
> Hi,
>
> On Thu, Sep 12, 2024 at 01:32:05PM GMT, Yao Zi wrote:
> > If an ID of a branch's child is greater than current maximum, we should
> > set new maximum to the child's ID, instead of its parent's.
> >
> > Fixes: 2dc66a5ab2c6 ("clk: rockchip: rk3588: fix CLK_NR_CLKS usage")
> > Signed-off-by: Yao Zi <ziyao at disroot.org>
> > ---
>
> Reviewed-by: Sebastian Reichel <sebastian.reichel at collabora.com>
>
> oops, good catch. Note, that the function returns the correct value
> for RK3588, since the clocks with the highest IDs are of GATE_LINK
> type and do not have their child field set.
yes, but it does hit me when working for rk3528 clock controller unit.
> I have not checked all
> the Rockchip SoCs converted for 6.12, so I suggest sending this as
> fixes material for 6.12.
I have done a rough check and think no code in 6.11 release is affected.
>
> Greetings,
>
> -- Sebastian
Cheers,
Yao Zi
More information about the Linux-rockchip
mailing list