]> git.baikalelectronics.ru Git - kernel.git/commit
clk: qcom: clk-alpha-pll: Don't reconfigure running Trion
authorBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 23 Nov 2021 16:25:08 +0000 (08:25 -0800)
committerStephen Boyd <sboyd@kernel.org>
Fri, 3 Dec 2021 00:59:12 +0000 (16:59 -0800)
commit28bb3308eb0d5ca03b00c3f14fca5477ddf099b1
tree7c6bd72f8fafc5113abd5589cd040de78bebc7d1
parentd5b6cd4c4ada447bcad839e72631606bd0d5fa22
clk: qcom: clk-alpha-pll: Don't reconfigure running Trion

In the event that the bootloader has configured the Trion PLL as source
for the display clocks, e.g. for the continuous splashscreen, then there
will also be RCGs that are clocked by this instance.

Reconfiguring, and in particular disabling the output of, the PLL will
cause issues for these downstream RCGs and has been shown to prevent
them from being re-parented.

Follow downstream and skip configuration if it's determined that the PLL
is already running.

Fixes: b47777adaa7e ("clk: qcom: clk-alpha-pll: Add support for controlling Lucid PLLs")
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Reviewed-by: Vinod Koul <vkoul@kernel.org>
Link: https://lore.kernel.org/r/20211123162508.153711-1-bjorn.andersson@linaro.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/qcom/clk-alpha-pll.c