mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 06:01:23 +00:00
clk: tegra: Do not warn unnecessarily
There is no need to warn if the reference PLL is enabled with the correct defaults. Only warn if the boot values don't match the defaults. Signed-off-by: Thierry Reding <treding@nvidia.com> Acked-by: Jon Hunter <jonathanh@nvidia.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
This commit is contained in:
parent
0d34dfbf30
commit
2067507012
1 changed files with 3 additions and 2 deletions
|
@ -995,8 +995,6 @@ static void tegra210_pllre_set_defaults(struct tegra_clk_pll *pllre)
|
||||||
pllre->params->defaults_set = true;
|
pllre->params->defaults_set = true;
|
||||||
|
|
||||||
if (val & PLL_ENABLE) {
|
if (val & PLL_ENABLE) {
|
||||||
pr_warn("PLL_RE already enabled. Postponing set full defaults\n");
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* PLL is ON: check if defaults already set, then set those
|
* PLL is ON: check if defaults already set, then set those
|
||||||
* that can be updated in flight.
|
* that can be updated in flight.
|
||||||
|
@ -1023,6 +1021,9 @@ static void tegra210_pllre_set_defaults(struct tegra_clk_pll *pllre)
|
||||||
writel_relaxed(val, clk_base + pllre->params->ext_misc_reg[0]);
|
writel_relaxed(val, clk_base + pllre->params->ext_misc_reg[0]);
|
||||||
udelay(1);
|
udelay(1);
|
||||||
|
|
||||||
|
if (!pllre->params->defaults_set)
|
||||||
|
pr_warn("PLL_RE already enabled. Postponing set full defaults\n");
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue