Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: qcom: ipq6018: drop the CLK_SET_RATE_PARENT flag from PLL clocks

GPLL, NSS crypto PLL clock rates are fixed and shouldn't be scaled based
on the request from dependent clocks. Doing so will result in the
unexpected behaviour. So drop the CLK_SET_RATE_PARENT flag from the PLL
clocks.

Cc: stable@vger.kernel.org
Fixes: d9db07f088af ("clk: qcom: Add ipq6018 Global Clock Controller support")
Signed-off-by: Kathiravan Thirumoorthy <quic_kathirav@quicinc.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20230913-gpll_cleanup-v2-2-c8ceb1a37680@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

authored by

Kathiravan Thirumoorthy and committed by
Bjorn Andersson
99cd4935 e641a070

-6
-6
drivers/clk/qcom/gcc-ipq6018.c
··· 72 72 &gpll0_main.clkr.hw }, 73 73 .num_parents = 1, 74 74 .ops = &clk_fixed_factor_ops, 75 - .flags = CLK_SET_RATE_PARENT, 76 75 }, 77 76 }; 78 77 ··· 85 86 &gpll0_main.clkr.hw }, 86 87 .num_parents = 1, 87 88 .ops = &clk_alpha_pll_postdiv_ro_ops, 88 - .flags = CLK_SET_RATE_PARENT, 89 89 }, 90 90 }; 91 91 ··· 159 161 &gpll6_main.clkr.hw }, 160 162 .num_parents = 1, 161 163 .ops = &clk_alpha_pll_postdiv_ro_ops, 162 - .flags = CLK_SET_RATE_PARENT, 163 164 }, 164 165 }; 165 166 ··· 189 192 &gpll4_main.clkr.hw }, 190 193 .num_parents = 1, 191 194 .ops = &clk_alpha_pll_postdiv_ro_ops, 192 - .flags = CLK_SET_RATE_PARENT, 193 195 }, 194 196 }; 195 197 ··· 239 243 &gpll2_main.clkr.hw }, 240 244 .num_parents = 1, 241 245 .ops = &clk_alpha_pll_postdiv_ro_ops, 242 - .flags = CLK_SET_RATE_PARENT, 243 246 }, 244 247 }; 245 248 ··· 269 274 &nss_crypto_pll_main.clkr.hw }, 270 275 .num_parents = 1, 271 276 .ops = &clk_alpha_pll_postdiv_ro_ops, 272 - .flags = CLK_SET_RATE_PARENT, 273 277 }, 274 278 }; 275 279