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

Commit f31f05bf authored by Vivek Aknurwar's avatar Vivek Aknurwar
Browse files

clk: qcom: clk-alpha-pll: Remove already enabled warning in PLL configs



It is expected that PLLs are already enabled since
boot usually enable PLLs. clk_hw_get_name can't be
used in clock pre-registration stage since hw->core
will be NULL.

PLL already enabled warning is valid in enable path.

Change-Id: I9040426f2803e5a413d919b143de6fa59098b09b
Signed-off-by: default avatarVivek Aknurwar <viveka@codeaurora.org>
parent 3bdb50e5
Loading
Loading
Loading
Loading
+3 −18
Original line number Diff line number Diff line
@@ -986,13 +986,8 @@ int clk_zonda_pll_configure(struct clk_alpha_pll *pll, struct regmap *regmap,
	int ret;

	ret = __zonda_pll_is_enabled(pll, regmap);
	if (ret < 0)
	if (ret)
		return ret;
	else if (ret) {
		pr_warn("%s PLL is already enabled\n",
				clk_hw_get_name(&pll->clkr.hw));
		return 0;
	}

	if (config->l)
		ret |= regmap_write(regmap, PLL_L_VAL(pll), config->l);
@@ -1942,13 +1937,8 @@ void clk_lucid_pll_configure(struct clk_alpha_pll *pll, struct regmap *regmap,
	int ret;

	ret = lucid_pll_is_enabled(pll, regmap);
	if (ret < 0)
		return;
	else if (ret) {
		pr_warn("%s PLL is already enabled\n",
			clk_hw_get_name(&pll->clkr.hw));
	if (ret)
		return;
	}

	if (config->l)
		regmap_write(regmap, PLL_L_VAL(pll), config->l);
@@ -2222,13 +2212,8 @@ int clk_lucid_5lpe_pll_configure(struct clk_alpha_pll *pll,
	int ret;

	ret = lucid_pll_is_enabled(pll, regmap);
	if (ret < 0)
	if (ret)
		return ret;
	else if (ret) {
		pr_warn("%s PLL is already enabled\n",
				clk_hw_get_name(&pll->clkr.hw));
		return 0;
	}

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