From 5a78ac7272d914ccfc5ec792aaac46c1bab04ee8 Mon Sep 17 00:00:00 2001 From: David Dai Date: Thu, 21 Feb 2019 16:47:03 -0800 Subject: [PATCH] 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 --- drivers/clk/qcom/clk-alpha-pll.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/clk/qcom/clk-alpha-pll.c b/drivers/clk/qcom/clk-alpha-pll.c index 3908e101d113..b5e0e50a2f8e 100644 --- a/drivers/clk/qcom/clk-alpha-pll.c +++ b/drivers/clk/qcom/clk-alpha-pll.c @@ -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);