clk: qcom: mmcc-msm8974: use clk_rcg2_shared_ops for mdp_clk_src clock
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sun, 7 May 2023 17:53:34 +0000 (20:53 +0300)
committerBjorn Andersson <andersson@kernel.org>
Fri, 26 May 2023 20:42:46 +0000 (13:42 -0700)
The mdp_clk_src clock should not be turned off. Instead it should be
'parked' to the XO, as most of other mdp_clk_src clocks. Fix that by
using the clk_rcg2_shared_ops.

Fixes: d8b212014e69 ("clk: qcom: Add support for MSM8974's multimedia clock controller (MMCC)")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tested-by: Luca Weiss <luca@z3ntu.xyz>
Acked-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230507175335.2321503-1-dmitry.baryshkov@linaro.org
drivers/clk/qcom/mmcc-msm8974.c

index b90a9f3..d2fec5d 100644 (file)
@@ -485,7 +485,7 @@ static struct clk_rcg2 mdp_clk_src = {
                .name = "mdp_clk_src",
                .parent_data = mmcc_xo_mmpll0_dsi_hdmi_gpll0,
                .num_parents = ARRAY_SIZE(mmcc_xo_mmpll0_dsi_hdmi_gpll0),
-               .ops = &clk_rcg2_ops,
+               .ops = &clk_rcg2_shared_ops,
        },
 };