linux/drivers/clk/rockchip
Quentin Schulz a16e911775 clk: rockchip: rk3399: allow clk_cifout to force clk_cifout_src to reparent
commit 933bf364e1 upstream.

clk_cifout is derived from clk_cifout_src through an integer divider
limited to 32. clk_cifout_src is a child of either cpll, gpll or npll
without any possibility of a divider of any sort. The default clock
parent is cpll.

Let's allow clk_cifout to ask its parent clk_cifout_src to reparent in
order to find the real closest possible rate for clk_cifout and not one
derived from cpll only.

Cc: stable@vger.kernel.org # 4.10+
Fixes: fd8bc82933 ("clk: rockchip: fix the rk3399 cifout clock")
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Link: https://lore.kernel.org/r/20221117-rk3399-cifout-set-rate-parent-v1-0-432548d04081@theobroma-systems.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-11 23:03:40 +09:00
..
clk-cpu.c
clk-ddr.c
clk-half-divider.c
clk-inverter.c
clk-mmc-phase.c
clk-muxgrf.c
clk-pll.c
clk-px30.c
clk-rk3036.c
clk-rk3128.c
clk-rk3188.c
clk-rk3228.c
clk-rk3288.c
clk-rk3308.c
clk-rk3328.c
clk-rk3368.c
clk-rk3399.c
clk-rk3568.c
clk-rv1108.c
clk-rv1126.c
clk.c
clk.h
Kconfig
Makefile
softrst.c