提交 9735ee9e 编写于 作者: M Maxime Ripard

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: 5e737617 ("clk: sunxi-ng: Add sun5i CCU driver")
Reported-by: NKevin Hilman <khilman@baylibre.com>
Acked-by: NChen-Yu Tsai <wens@csie.org>
Signed-off-by: NMaxime Ripard <maxime.ripard@free-electrons.com>
上级 5771a8c0
...@@ -184,7 +184,7 @@ static struct ccu_mux cpu_clk = { ...@@ -184,7 +184,7 @@ static struct ccu_mux cpu_clk = {
.hw.init = CLK_HW_INIT_PARENTS("cpu", .hw.init = CLK_HW_INIT_PARENTS("cpu",
cpu_parents, cpu_parents,
&ccu_mux_ops, &ccu_mux_ops,
CLK_IS_CRITICAL), CLK_SET_RATE_PARENT | CLK_IS_CRITICAL),
} }
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册