diff options
author | Thierry Reding <treding@nvidia.com> | 2019-06-13 19:12:23 +0300 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2019-06-26 02:10:21 +0300 |
commit | 20675070127b51c6ca26a895c7e0b459f2c397e1 (patch) | |
tree | 2c7b7aafd2971c02da5b8e0c8025f11d2302a4d7 /drivers/clk | |
parent | 0d34dfbf3023cf119b83f6470692c0b10c832495 (diff) | |
download | linux-20675070127b51c6ca26a895c7e0b459f2c397e1.tar.xz |
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>
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/tegra/clk-tegra210.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/clk/tegra/clk-tegra210.c b/drivers/clk/tegra/clk-tegra210.c index 1be4d82d78cf..51a21bf1715e 100644 --- a/drivers/clk/tegra/clk-tegra210.c +++ b/drivers/clk/tegra/clk-tegra210.c @@ -995,8 +995,6 @@ static void tegra210_pllre_set_defaults(struct tegra_clk_pll *pllre) pllre->params->defaults_set = true; 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 * 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]); udelay(1); + if (!pllre->params->defaults_set) + pr_warn("PLL_RE already enabled. Postponing set full defaults\n"); + return; } |