* [PATCH RESEND] clk: core: Force setting the phase delay when no change
[not found] <20160824092212.D088561C49@smtp.codeaurora.org>
@ 2016-08-30 21:51 ` Stephen Boyd
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Boyd @ 2016-08-30 21:51 UTC (permalink / raw)
To: linux-arm-kernel
On 08/24, Jean-Francois Moine wrote:
> This patch reverts the commit 023bd7166be0595d18220dfd5c9765b3970f6ef3
> (clk: skip unnecessary set_phase if nothing to do), fixing two
> problems:
> - in some SoCs, the hardware phase delay depends on the rate ratio of
> the clock and its parent. So, changing this ratio may imply to set
> new hardware values, even if the logical delay is the same.
> - when the delay was the same as previously, an error was returned.
>
> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
> ---
Applied to clk-next. We can revisit optimizing things later like
the original patch attempted, but fixing the second problem is
enough to warrant a revert for now.
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH RESEND] clk: core: Force setting the phase delay when no change
@ 2016-08-24 6:32 Jean-Francois Moine
0 siblings, 0 replies; 2+ messages in thread
From: Jean-Francois Moine @ 2016-08-24 6:32 UTC (permalink / raw)
To: linux-arm-kernel
This patch reverts the commit 023bd7166be0595d18220dfd5c9765b3970f6ef3
(clk: skip unnecessary set_phase if nothing to do), fixing two
problems:
- in some SoCs, the hardware phase delay depends on the rate ratio of
the clock and its parent. So, changing this ratio may imply to set
new hardware values, even if the logical delay is the same.
- when the delay was the same as previously, an error was returned.
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
---
resend:
- send to the clock maintainers (asked by Maxime Ripard)
- change the comment adding the reference to the reverted commit
---
drivers/clk/clk.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index 71cc567..7e8576e 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -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)
@@ -1922,7 +1918,6 @@ int clk_set_phase(struct clk *clk, int degrees)
if (!ret)
clk->core->phase = degrees;
-out:
clk_prepare_unlock();
return ret;
--
2.9.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-08-30 21:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20160824092212.D088561C49@smtp.codeaurora.org>
2016-08-30 21:51 ` [PATCH RESEND] clk: core: Force setting the phase delay when no change Stephen Boyd
2016-08-24 6:32 Jean-Francois Moine
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).