Skip to content

Commit f9b493d

Browse files
jhovoldandersson
authored andcommitted
clk: qcom: clk-alpha-pll: drop lucid-evo pll enabled warning
The boot firmware may have left the display enabled and its PLL running, which currently generates a warning on boot (e.g. on x1e80100): disp_cc_pll0 PLL is already enabled Drop the bogus warning and fix up the PLL enabled error handling (trion_pll_is_enabled() only returns 0 or 1). Fixes: d1b121d ("clk: qcom: Add LUCID_EVO PLL type for SDX65") Signed-off-by: Johan Hovold <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 36d2022 commit f9b493d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2318,13 +2318,8 @@ static int alpha_pll_lucid_evo_enable(struct clk_hw *hw)
23182318
}
23192319

23202320
/* Check if PLL is already enabled */
2321-
ret = trion_pll_is_enabled(pll, regmap);
2322-
if (ret < 0) {
2323-
return ret;
2324-
} else if (ret) {
2325-
pr_warn("%s PLL is already enabled\n", clk_hw_get_name(&pll->clkr.hw));
2321+
if (trion_pll_is_enabled(pll, regmap))
23262322
return 0;
2327-
}
23282323

23292324
ret = regmap_update_bits(regmap, PLL_MODE(pll), PLL_RESET_N, PLL_RESET_N);
23302325
if (ret)

0 commit comments

Comments
 (0)