phy: qcom: edp: Postpone clk_set_rate until the PLL is up
authorBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 5 Aug 2022 15:44:32 +0000 (08:44 -0700)
committerVinod Koul <vkoul@kernel.org>
Fri, 2 Sep 2022 16:57:12 +0000 (22:27 +0530)
commitf2e35c75893c28ebc12f8efbc1d13b8530d19263
treefec8aff22abfe37c4d963889fa6a0b7add6514b2
parent0caffb268dcdc4eb41288164101b80ec6960155d
phy: qcom: edp: Postpone clk_set_rate until the PLL is up

When the platform was booted with the involved clocks enabled the
clk_set_rate() of the link and pixel clocks will perculate to the
children, which will fail to update because the PHY driver has just shut
down the PLL.

Postpone the clock rate updates until the PLL is back online to avoid
reconfiguring the clocks while the PLL is not ticking.

Fixes: f199223cb490 ("phy: qcom: Introduce new eDP PHY driver")
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220805154432.546740-1-bjorn.andersson@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-edp.c