]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
clk: qcom: clk-alpha-pll: fix CAL_L write in alpha_pll_fabia_prepare
authorJonathan Marek <jonathan@marek.ca>
Wed, 9 Jun 2021 02:28:52 +0000 (22:28 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 15:00:06 +0000 (17:00 +0200)
[ Upstream commit 7f54bf2640e877c8a9b4cc7e2b29f82e3ca1a284 ]

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 <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>
drivers/clk/qcom/clk-alpha-pll.c

index c6eb99169ddc748c61cf20c8341db4345ac1eb9f..6f8f0bbc5ab5b14328ce3bac67142b4540e91afe 100644 (file)
@@ -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);