Skip to content

Commit 39a609b

Browse files
juhosggregkh
authored andcommitted
clk: qcom: clk-alpha-pll: set ALPHA_EN bit for Stromer Plus PLLs
[ Upstream commit 5a33a64 ] The clk_alpha_pll_stromer_plus_set_rate() function does not sets the ALPHA_EN bit in the USER_CTL register, so setting rates which requires using alpha mode works only if the bit gets set already prior calling the function. Extend the function to set the ALPHA_EN bit in order to allow using fractional rates regardless whether the bit gets set previously or not. Fixes: 84da489 ("clk: qcom: clk-alpha-pll: introduce stromer plus ops") Signed-off-by: Gabor Juhos <j4g8y7@gmail.com> Link: https://lore.kernel.org/r/20240508-stromer-plus-alpha-en-v1-1-6639ce01ca5b@gmail.com Signed-off-by: Bjorn Andersson <andersson@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 1910c7c commit 39a609b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2555,6 +2555,9 @@ static int clk_alpha_pll_stromer_plus_set_rate(struct clk_hw *hw,
25552555
regmap_write(pll->clkr.regmap, PLL_ALPHA_VAL_U(pll),
25562556
a >> ALPHA_BITWIDTH);
25572557

2558+
regmap_update_bits(pll->clkr.regmap, PLL_USER_CTL(pll),
2559+
PLL_ALPHA_EN, PLL_ALPHA_EN);
2560+
25582561
regmap_write(pll->clkr.regmap, PLL_MODE(pll), PLL_BYPASSNL);
25592562

25602563
/* Wait five micro seconds or more */

0 commit comments

Comments
 (0)