linux-clk.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] clk: tegra: Do not warn unnecessarily
@ 2019-06-13 16:12 Thierry Reding
  2019-06-13 16:12 ` [PATCH 2/3] clk: tegra: Warn if an enabled PLL is in IDDQ Thierry Reding
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Thierry Reding @ 2019-06-13 16:12 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd
  Cc: Jonathan Hunter, Peter De Schrijver, Alex Frid, linux-clk, linux-tegra

From: Thierry Reding <treding@nvidia.com>

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>
---
 drivers/clk/tegra/clk-tegra210.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/clk/tegra/clk-tegra210.c b/drivers/clk/tegra/clk-tegra210.c
index e1ba62d2b1a0..4904ac4a75db 100644
--- a/drivers/clk/tegra/clk-tegra210.c
+++ b/drivers/clk/tegra/clk-tegra210.c
@@ -984,8 +984,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.
@@ -1012,6 +1010,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;
 	}
 
-- 
2.21.0


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-06-25 23:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-13 16:12 [PATCH 1/3] clk: tegra: Do not warn unnecessarily Thierry Reding
2019-06-13 16:12 ` [PATCH 2/3] clk: tegra: Warn if an enabled PLL is in IDDQ Thierry Reding
2019-06-17 10:39   ` Jon Hunter
2019-06-17 11:14     ` Thierry Reding
2019-06-25 23:13   ` Stephen Boyd
2019-06-13 16:12 ` [PATCH 3/3] clk: tegra: Do not enable PLL_RE_VCO on Tegra210 Thierry Reding
2019-06-17 10:43   ` Jon Hunter
2019-06-25 23:13   ` Stephen Boyd
2019-06-17 10:32 ` [PATCH 1/3] clk: tegra: Do not warn unnecessarily Jon Hunter
2019-06-25 23:13 ` Stephen Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).