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

Commit f0eebfea authored by Deepak Katragadda's avatar Deepak Katragadda
Browse files

clk: qcom: clk-alpha-pll: Set the inited flag to avoid PLL reconfiguration



When entities outside of the HLOS configure PLLs, set the inited
flag to true in order to avoid reconfiguration at a later time.

Change-Id: I8fcd382c280a0d67c56f361a76a088b42ad05c2b
Signed-off-by: default avatarDeepak Katragadda <dkatraga@codeaurora.org>
parent 3b310e47
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -726,6 +726,7 @@ int clk_trion_pll_configure(struct clk_alpha_pll *pll, struct regmap *regmap,

	if (trion_pll_is_enabled(pll, regmap)) {
		pr_warn("PLL is already enabled. Skipping configuration.\n");
		pll->inited = true;
		return ret;
	}

@@ -1039,6 +1040,7 @@ int clk_regera_pll_configure(struct clk_alpha_pll *pll, struct regmap *regmap,

	if (mode_regval & PLL_LOCK_DET) {
		pr_warn("PLL is already enabled. Skipping configuration.\n");
		pll->inited = true;
		return 0;
	}