From: Jonathan Marek Date: Wed, 9 Jun 2021 02:28:52 +0000 (-0400) Subject: clk: qcom: clk-alpha-pll: fix CAL_L write in alpha_pll_fabia_prepare X-Git-Tag: accepted/tizen/unified/20230118.172025~6866^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7f54bf2640e877c8a9b4cc7e2b29f82e3ca1a284;p=platform%2Fkernel%2Flinux-rpi.git clk: qcom: clk-alpha-pll: fix CAL_L write in alpha_pll_fabia_prepare 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: 691865bad627 ("clk: qcom: clk-alpha-pll: Add support for Fabia PLL calibration") Signed-off-by: Jonathan Marek Link: https://lore.kernel.org/r/20210609022852.4151-1-jonathan@marek.ca Signed-off-by: Stephen Boyd --- diff --git a/drivers/clk/qcom/clk-alpha-pll.c b/drivers/clk/qcom/clk-alpha-pll.c index 94b53c7..eaedcce 100644 --- a/drivers/clk/qcom/clk-alpha-pll.c +++ b/drivers/clk/qcom/clk-alpha-pll.c @@ -1255,7 +1255,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);