clk: qcom: gcc-sc8280xp: use phy-mux clock for PCIe
authorJohan Hovold <johan+linaro@kernel.org>
Tue, 28 Jun 2022 08:57:07 +0000 (10:57 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 30 Jun 2022 02:53:23 +0000 (21:53 -0500)
commit9410fb940114444f37a0b787bd84077b61d76bf6
treece39fd8dcaead34132dd73ad34df1b264ac035c7
parentd62cac46b0184b8730c68b01359a33769fee821b
clk: qcom: gcc-sc8280xp: use phy-mux clock for PCIe

Use the new phy-mux clock implementation for the PCIe pipe clock muxes
so that the pipe clock source is set to the QMP PHY PLL when the
downstream pipe clock is enabled and restored to the always-on XO when
it is again disabled.

This is needed to prevent the corresponding GDSC from hanging when
enabling or disabling the PCIe power domain, something which requires a
ticking source.

Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220628085707.16214-1-johan+linaro@kernel.org
drivers/clk/qcom/gcc-sc8280xp.c