Skip to content

Commit e681000

Browse files
prabhakarladgeertu
authored andcommitted
clk: renesas: r9a09g077: Propagate rate changes through mux parents
Enable CLK_SET_RATE_PARENT for mux clocks so that rate changes can properly propagate to their parent clocks. Several clocks in the R9A09G077 CPG tree depend on upstream PLL or divider outputs being recalculated when a child requests a new frequency. Without this flag, rate adjustments stop at the mux layer, leaving parent rates unchanged and preventing the clock tree from converging on the intended values. Set the flag in DEF_MUX to ensure that parent clocks participate in rate negotiation, which is required for correct operation of the display and peripheral related clocks being added for RZ/T2H support. Fixes: 065fe72 ("clk: renesas: Add support for R9A09G077 SoC") Signed-off-by: Lad Prabhakar <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Geert Uytterhoeven <[email protected]>
1 parent ec74d20 commit e681000

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/clk/renesas/r9a09g077-cpg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ enum rzt2h_clk_types {
7878
#define DEF_MUX(_name, _id, _conf, _parent_names, _num_parents, _mux_flags) \
7979
DEF_TYPE(_name, _id, CLK_TYPE_RZT2H_MUX, .conf = _conf, \
8080
.parent_names = _parent_names, .num_parents = _num_parents, \
81-
.flag = 0, .mux_flags = _mux_flags)
81+
.flag = CLK_SET_RATE_PARENT, .mux_flags = _mux_flags)
8282
#define DEF_DIV_FSELXSPI(_name, _id, _parent, _conf, _dtable) \
8383
DEF_TYPE(_name, _id, CLK_TYPE_RZT2H_FSELXSPI, .conf = _conf, \
8484
.parent = _parent, .dtable = _dtable, .flag = 0)

0 commit comments

Comments
 (0)