mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
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:
parent
bd0b75950b
commit
5a78ac7272
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue