Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

clk: qcom: clk-alpha-pll: fix lucid 5lpe pll enabled check

The lucid 5lpe PLL enable check only checks for an impossible negative
return value and does not actually return as intended in case the PLL is
already enabled (e.g. has been left enabled by boot firmware).

Fixes: f4c7e27aa4b6 ("clk: qcom: clk-alpha-pll: Add support for Lucid 5LPE PLL")
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20241022080521.359-3-johan+linaro@kernel.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

authored by

Johan Hovold and committed by
Bjorn Andersson
05b2363b f9b493de

+2 -3
+2 -3
drivers/clk/qcom/clk-alpha-pll.c
··· 1903 1903 } 1904 1904 1905 1905 /* Check if PLL is already enabled, return if enabled */ 1906 - ret = trion_pll_is_enabled(pll, pll->clkr.regmap); 1907 - if (ret < 0) 1908 - return ret; 1906 + if (trion_pll_is_enabled(pll, pll->clkr.regmap)) 1907 + return 0; 1909 1908 1910 1909 ret = regmap_update_bits(pll->clkr.regmap, PLL_MODE(pll), PLL_RESET_N, PLL_RESET_N); 1911 1910 if (ret)