summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSatya Priya Kakitapalli <quic_skakitap@quicinc.com>2024-07-31 11:59:10 +0530
committerBjorn Andersson <andersson@kernel.org>2024-07-31 21:56:09 -0500
commit4ad1ed6ef27cab94888bb3c740c14042d5c0dff2 (patch)
tree4000c9d5ae27cfbea5a914c2be22bfd118d41837 /drivers
parent2c4553e6c485a96b5d86989eb9654bf20e51e6dd (diff)
downloadlinux-stable-4ad1ed6ef27cab94888bb3c740c14042d5c0dff2.tar.gz
linux-stable-4ad1ed6ef27cab94888bb3c740c14042d5c0dff2.tar.bz2
linux-stable-4ad1ed6ef27cab94888bb3c740c14042d5c0dff2.zip
clk: qcom: clk-alpha-pll: Fix the trion pll postdiv set rate API
Correct the pll postdiv shift used in clk_trion_pll_postdiv_set_rate API. The shift value is not same for different types of plls and should be taken from the pll's .post_div_shift member. Fixes: 548a909597d5 ("clk: qcom: clk-alpha-pll: Add support for Trion PLLs") Cc: stable@vger.kernel.org Signed-off-by: Satya Priya Kakitapalli <quic_skakitap@quicinc.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Link: https://lore.kernel.org/r/20240731062916.2680823-3-quic_skakitap@quicinc.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/clk/qcom/clk-alpha-pll.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/qcom/clk-alpha-pll.c b/drivers/clk/qcom/clk-alpha-pll.c
index 9ce45cd6e09f..eb5626095916 100644
--- a/drivers/clk/qcom/clk-alpha-pll.c
+++ b/drivers/clk/qcom/clk-alpha-pll.c
@@ -1552,8 +1552,8 @@ clk_trion_pll_postdiv_set_rate(struct clk_hw *hw, unsigned long rate,
}
return regmap_update_bits(regmap, PLL_USER_CTL(pll),
- PLL_POST_DIV_MASK(pll) << PLL_POST_DIV_SHIFT,
- val << PLL_POST_DIV_SHIFT);
+ PLL_POST_DIV_MASK(pll) << pll->post_div_shift,
+ val << pll->post_div_shift);
}
const struct clk_ops clk_alpha_pll_postdiv_trion_ops = {