Skip to content

Commit

Permalink
clk: qcom: clk-alpha-pll: fix CAL_L write in alpha_pll_fabia_prepare
Browse files Browse the repository at this point in the history
[ Upstream commit 7f54bf2 ]

Caught this when looking at alpha-pll code. Untested but it is clear that
this was intended to write to PLL_CAL_L_VAL and not PLL_ALPHA_VAL.

Fixes: 691865b ("clk: qcom: clk-alpha-pll: Add support for Fabia PLL calibration")
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Link: https://lore.kernel.org/r/20210609022852.4151-1-jonathan@marek.ca
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
flto authored and gregkh committed Jul 14, 2021
1 parent 1a93f40 commit 04ccd65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/clk/qcom/clk-alpha-pll.c
Original file line number Diff line number Diff line change
Expand Up @@ -1234,7 +1234,7 @@ static int alpha_pll_fabia_prepare(struct clk_hw *hw)
return ret;

/* Setup PLL for calibration frequency */
regmap_write(pll->clkr.regmap, PLL_ALPHA_VAL(pll), cal_l);
regmap_write(pll->clkr.regmap, PLL_CAL_L_VAL(pll), cal_l);

/* Bringup the PLL at calibration frequency */
ret = clk_alpha_pll_enable(hw);
Expand Down

0 comments on commit 04ccd65

Please sign in to comment.