linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] OMAP: Added recalculation of clock rate in 'clk_set_rate'
@ 2011-04-20  9:25 Shweta Gulati
  2011-04-20 13:35 ` Janorkar, Mayuresh
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Shweta Gulati @ 2011-04-20  9:25 UTC (permalink / raw)
  To: linux-arm-kernel

From: Gulati, Shweta <shweta.gulati@ti.com>

Core Clk Tree shows incorrect Clk rates at OPP50, as
in commit e07f469d284ca3d1f5dcf5438c22982be98bc071
calling of 'recalc' in API clk_set_rate is unintentionally
removed, because of which clock's tree rates get goofed
up when DVFS happens. This Patch adds recalc API back.

Tested on OMAP3630 SDP Board.

Signed-off-by: Shweta Gulati <shweta.gulati@ti.com>
Cc: Rajendra Nayak <rnayak@ti.com>
Cc: Paul Wamsley <paul@pwsan.com>
---
 arch/arm/plat-omap/clock.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/arch/arm/plat-omap/clock.c b/arch/arm/plat-omap/clock.c
index c9122dd..5a0d06b 100644
--- a/arch/arm/plat-omap/clock.c
+++ b/arch/arm/plat-omap/clock.c
@@ -130,8 +130,11 @@ int clk_set_rate(struct clk *clk, unsigned long rate)
 
 	spin_lock_irqsave(&clockfw_lock, flags);
 	ret = arch_clock->clk_set_rate(clk, rate);
-	if (ret == 0)
+	if (ret == 0) {
+		if (clk->recalc)
+			clk->rate = clk->recalc(clk);
 		propagate_rate(clk);
+	}
 	spin_unlock_irqrestore(&clockfw_lock, flags);
 
 	return ret;
-- 
1.7.0.4

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

end of thread, other threads:[~2011-05-11  4:19 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-20  9:25 [PATCH] OMAP: Added recalculation of clock rate in 'clk_set_rate' Shweta Gulati
2011-04-20 13:35 ` Janorkar, Mayuresh
2011-04-21 13:27   ` Gulati, Shweta
2011-04-20 15:42 ` Sergei Shtylyov
2011-04-21 13:27   ` Gulati, Shweta
2011-04-20 19:55 ` Paul Walmsley
2011-04-21 13:32   ` Gulati, Shweta
2011-04-23 17:00     ` Paul Walmsley
2011-05-06 21:49     ` Paul Walmsley
2011-05-10 10:55       ` Gulati, Shweta
2011-05-10 13:42         ` Avinash.H.M.
2011-05-11  4:19           ` Gulati, Shweta

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).