clk: qcom: gcc-qdu1000: Fix gcc_pcie_0_pipe_clk_src clock handling
authorImran Shaik <quic_imrashai@quicinc.com>
Thu, 3 Aug 2023 10:57:35 +0000 (16:27 +0530)
committerBjorn Andersson <andersson@kernel.org>
Mon, 14 Aug 2023 03:13:17 +0000 (20:13 -0700)
commitb311f5d3c4749259043a9a458a8db07915210142
treefb72142c54cae464b921ba17dac278e3512fb033
parentdf873243b2398a082d34a006bebe0e0ed7538f5c
clk: qcom: gcc-qdu1000: Fix gcc_pcie_0_pipe_clk_src clock handling

Fix the gcc pcie pipe clock handling as per the clk_regmap_phy_mux_ops
implementation to let the clock framework automatically park the clock
at XO when the clock is switched off and restore the parent when the
clock is switched on.

Fixes: 1c9efb0bc040 ("clk: qcom: Add QDU1000 and QRU1000 GCC support")
Co-developed-by: Taniya Das <quic_tdas@quicinc.com>
Signed-off-by: Taniya Das <quic_tdas@quicinc.com>
Signed-off-by: Imran Shaik <quic_imrashai@quicinc.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20230803105741.2292309-3-quic_imrashai@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/clk/qcom/gcc-qdu1000.c