]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: sunxi-ng: sun5i: Add clk_set_rate_parent to the CPU clock
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Fri, 21 Jul 2017 16:19:35 +0000 (18:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Aug 2017 15:33:53 +0000 (08:33 -0700)
commitd74355838d88f692b04a18de0ed4d195af750fa9
treeccd1a87d1857cbba94bd5a01a313883e458a8746
parenteb6669b193cb439eba601ac3521c76891b2c39e8
clk: sunxi-ng: sun5i: Add clk_set_rate_parent to the CPU clock

commit 9735ee9e3cc3ba113ac96b0368ef3f1a73092a23 upstream.

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.

Fixes: 5e73761786d6 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/clk/sunxi-ng/ccu-sun5i.c