Skip to content

Commit 9735ee9

Browse files
committed
clk: sunxi-ng: sun5i: Add clk_set_rate_parent to the CPU clock
The current CPU clock is missing the option to change the rate of its parents, leading to improper rates calculated by cpufreq, and eventually crashes. Cc: <stable@vger.kernel.org> Fixes: 5e73761 ("clk: sunxi-ng: Add sun5i CCU driver") Reported-by: Kevin Hilman <khilman@baylibre.com> Acked-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
1 parent 5771a8c commit 9735ee9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/sunxi-ng/ccu-sun5i.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ static struct ccu_mux cpu_clk = {
184184
.hw.init = CLK_HW_INIT_PARENTS("cpu",
185185
cpu_parents,
186186
&ccu_mux_ops,
187-
CLK_IS_CRITICAL),
187+
CLK_SET_RATE_PARENT | CLK_IS_CRITICAL),
188188
}
189189
};
190190

0 commit comments

Comments
 (0)