clk: qcom: gcc-sm8350: fix PCIe PIPE clocks handling
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Wed, 12 Apr 2023 13:48:29 +0000 (16:48 +0300)
committerBjorn Andersson <andersson@kernel.org>
Fri, 14 Apr 2023 03:35:53 +0000 (20:35 -0700)
commit1a500e0bc97b6cb3c0d9859e81973b8dd07d1b7b
treeb373e1b64b833e16eccb737806766309d3028d8c
parentaad09fc7c4a522892eb64a79627b17a3869936cb
clk: qcom: gcc-sm8350: fix PCIe PIPE clocks handling

On SM8350 platform the PCIe PIPE clocks require additional handling to
function correctly. They are to be switched to the tcxo source before
turning PCIe GDSCs off and should be switched to PHY PIPE source once
they are working. Switch PCIe PHY clocks to use clk_regmap_phy_mux_ops,
which provide support for this dance.

Fixes: 44c20c9ed37f ("clk: qcom: gcc: Add clock driver for SM8350")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230412134829.3686467-1-dmitry.baryshkov@linaro.org
drivers/clk/qcom/gcc-sm8350.c