Skip to contentSkip to conversation

clk: core: Force setting the phase delay when no change

PATCH New Jean-Francois Moine 1 participant 1 message Aug 13, 2016 Common clk

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: core: Force setting the phase delay when no change

The hardware phase delay may depend on some other settings as clock reparenting, so, it has to be set each time.
Also, when the delay was the same as previously, an error was returned.

---
 drivers/clk/clk.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/clk/clk.c +0 -4
index 820a939..2e6b91e 100644
@@ -1908,10 +1908,6 @@ int clk_set_phase(struct clk *clk, int degrees)
 
 	clk_prepare_lock();
 
-	/* bail early if nothing to do */
-	if (degrees == clk->core->phase)
-		goto out;
-
 	trace_clk_set_phase(clk->core, degrees);
 
 	if (clk->core->ops->set_phase)
Signature · 1 line
2.9.2