Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a78ac72 authored by David Dai's avatar David Dai Committed by David Collins
Browse files

clk: qcom: alpha: do not configure PLL during probe if already enabled



There are different configurations of display panels which may
or may not enable display PLLs before the display driver probes. Due to
continuous splash use cases, we may trample over existing PLL
configuration and cause the PLL to reset while it's in use. Prevent that
scenario by skipping the PLL configuration step if it's enabled.

Change-Id: I61f69c67ca57f18cbc6b551884ea199212ed4e9d
Signed-off-by: default avatarDavid Dai <daidavid1@codeaurora.org>
parent bd0b7595
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1428,6 +1428,9 @@ static void clk_alpha_pll_custom_configure(struct clk_alpha_pll *pll,
void clk_lucid_pll_configure(struct clk_alpha_pll *pll, struct regmap *regmap,
				const struct alpha_pll_config *config)
{
	if (lucid_pll_is_enabled(pll, regmap))
		return;

	if (config->l)
		regmap_write(regmap, PLL_L_VAL(pll), config->l);