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

Commit 87279d8c authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 320e1b8e f31f05bf
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);