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: Vivek Aknurwar <viveka@codeaurora.org>
This commit is contained in:
Vivek Aknurwar 2020-02-18 16:53:16 -08:00
commit f31f05bffa

View file

@ -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)
if (ret)
return;
else if (ret) {
pr_warn("%s PLL is already enabled\n",
clk_hw_get_name(&pll->clkr.hw));
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);