Skip to content

Commit 4ad1ed6

Browse files
Satya Priya Kakitapalliandersson
authored andcommitted
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: 548a909 ("clk: qcom: clk-alpha-pll: Add support for Trion PLLs") Cc: [email protected] Signed-off-by: Satya Priya Kakitapalli <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 2c4553e commit 4ad1ed6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/clk/qcom/clk-alpha-pll.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1552,8 +1552,8 @@ clk_trion_pll_postdiv_set_rate(struct clk_hw *hw, unsigned long rate,
15521552
}
15531553

15541554
return regmap_update_bits(regmap, PLL_USER_CTL(pll),
1555-
PLL_POST_DIV_MASK(pll) << PLL_POST_DIV_SHIFT,
1556-
val << PLL_POST_DIV_SHIFT);
1555+
PLL_POST_DIV_MASK(pll) << pll->post_div_shift,
1556+
val << pll->post_div_shift);
15571557
}
15581558

15591559
const struct clk_ops clk_alpha_pll_postdiv_trion_ops = {

0 commit comments

Comments
 (0)