Skip to content

Commit 1792bda

Browse files
xdarklightjbrun3t
authored andcommitted
clk: meson: meson8b: Use CLK_SET_RATE_NO_REPARENT for vclk{,2}_in_sel
Use CLK_SET_RATE_NO_REPARENT for the vclk{,2}_in_sel clocks. The only parent which is actually used is vid_pll_final_div. This should be set using assigned-clock-parents in the .dts rather than removing some "unwanted" clock parents from the clock driver. Suggested-by: Jerome Brunet <[email protected]> Signed-off-by: Martin Blumenstingl <[email protected]> Signed-off-by: Jerome Brunet <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 2e12054 commit 1792bda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/clk/meson/meson8b.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,7 @@ static struct clk_regmap meson8b_vclk_in_sel = {
11751175
.ops = &clk_regmap_mux_ro_ops,
11761176
.parent_hws = meson8b_vclk_mux_parent_hws,
11771177
.num_parents = ARRAY_SIZE(meson8b_vclk_mux_parent_hws),
1178-
.flags = CLK_SET_RATE_PARENT,
1178+
.flags = CLK_SET_RATE_PARENT | CLK_SET_RATE_NO_REPARENT,
11791179
},
11801180
};
11811181

@@ -1358,7 +1358,7 @@ static struct clk_regmap meson8b_vclk2_in_sel = {
13581358
.ops = &clk_regmap_mux_ro_ops,
13591359
.parent_hws = meson8b_vclk_mux_parent_hws,
13601360
.num_parents = ARRAY_SIZE(meson8b_vclk_mux_parent_hws),
1361-
.flags = CLK_SET_RATE_PARENT,
1361+
.flags = CLK_SET_RATE_PARENT | CLK_SET_RATE_NO_REPARENT,
13621362
},
13631363
};
13641364

0 commit comments

Comments
 (0)