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: David Dai <daidavid1@codeaurora.org>
This commit is contained in:
David Dai 2019-02-21 16:47:03 -08:00 • committed by David Collins
commit 5a78ac7272

View file

@ -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);