clk: sunxi-ng: sun5i: Add clk_set_rate_parent to the CPU clock
authorMaxime Ripard <[email protected]>
Fri, 21 Jul 2017 16:19:35 +0000 (18:19 +0200)
committerMaxime Ripard <[email protected]>
Mon, 24 Jul 2017 09:37:04 +0000 (11:37 +0200)
commit9735ee9e3cc3ba113ac96b0368ef3f1a73092a23
treea94b58a2fd4f6bbb22cfe80dcedcb7b49aac7478
parent5771a8c08880cdca3bfb4a3fc6d309d6bba20877
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: <[email protected]>
Fixes: 5e73761786d6 ("clk: sunxi-ng: Add sun5i CCU driver")
Reported-by: Kevin Hilman <[email protected]>
Acked-by: Chen-Yu Tsai <[email protected]>
Signed-off-by: Maxime Ripard <[email protected]>
drivers/clk/sunxi-ng/ccu-sun5i.c