clk: renesas: rzg2l: Postpone updating priv->clks[]
authorClaudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Wed, 14 May 2025 09:04:08 +0000 (12:04 +0300)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 10 Jun 2025 08:20:45 +0000 (10:20 +0200)
commit2f96afdffad4ef74e3c511207058c41c54a2d014
treeb7f0272fcd63ecb64aa8dbfe9035b8a63d5375a7
parent1bf4adbbf624247928774402f51a64ee4ceb445e
clk: renesas: rzg2l: Postpone updating priv->clks[]

Since the sibling data is filled after the priv->clks[] array entry is
populated, the first clock that is probed and has a sibling will
temporarily behave as its own sibling until its actual sibling is
populated. To avoid any issues, postpone updating priv->clks[] until after
the sibling is populated.

Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/20250514090415.4098534-2-claudiu.beznea.uj@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/clk/renesas/rzg2l-cpg.c