]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 May 2023 14:03:35 +0000 (23:03 +0900)
commit800a7eaa839343a88797bcd0d4c72c2f0f9b755a
tree70c24ac0f2ca5e747115778ca4e0aac3dd7a2808
parentd0c74461edf43ccd961fc4c1410e109846441cf0
clk: qcom: gcc-sm8350: fix PCIe PIPE clocks handling

[ Upstream commit 1a500e0bc97b6cb3c0d9859e81973b8dd07d1b7b ]

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: fc35e80474df ("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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/qcom/gcc-sm8350.c