]> git.baikalelectronics.ru Git - kernel.git/commit
clk: rockchip: rk3399: allow clk_cifout to force clk_cifout_src to reparent
authorQuentin Schulz <quentin.schulz@theobroma-systems.com>
Thu, 17 Nov 2022 12:04:31 +0000 (13:04 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:35:55 +0000 (11:35 +0200)
commite9dd2cffea4c5dfe86d0c51bedb5ff679286f99a
treeb20825b0d178c95ab3bc013cfbafac0ad4978693
parent9edaf75954d4072396d054d223edfd54c8d8a7d1
clk: rockchip: rk3399: allow clk_cifout to force clk_cifout_src to reparent

commit 933bf364e152cd60902cf9585c2ba310d593e69f 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: e59ad083320f ("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>
drivers/clk/rockchip/clk-rk3399.c