[PATCH] OMAP3: set the core dpll clk rate in its set_rate function.

Subsystems: arm port, omap2+ support, the rest

STALE5624d

3 messages, 3 authors, 2011-05-13 · open the first message on its own page

[PATCH] OMAP3: set the core dpll clk rate in its set_rate function.

From: Avinash.H.M <hidden>
Date: 2011-05-09 12:29:40

The debug l3_ick/rate is not displaying the actual rate of the clock in
hardware. This is because, the core dpll set_rate function doesn't update the
clk.rate. After fixing, the l3_ick/rate is displaying proper values.

Signed-off-by: Shweta Gulati <redacted>
Signed-off-by: Avinash.H.M <redacted>
Cc: Rajendra Nayak <redacted>
Cc: Paul Wamsley <paul@pwsan.com>
---
* The patch is based on v2.6.39-rc6
* The patch is tested on zoom3.
* The patch is based on discussions from 
  http://www.mail-archive.com/linux-omap at vger.kernel.org/msg48518.html

 arch/arm/mach-omap2/clkt34xx_dpll3m2.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-omap2/clkt34xx_dpll3m2.c b/arch/arm/mach-omap2/clkt34xx_dpll3m2.c
index b10d9ef..2a77faf 100644
--- a/arch/arm/mach-omap2/clkt34xx_dpll3m2.c
+++ b/arch/arm/mach-omap2/clkt34xx_dpll3m2.c
@@ -118,6 +118,7 @@ int omap3_core_dpll_m2_set_rate(struct clk *clk, unsigned long rate)
 				  sdrc_cs0->rfr_ctrl, sdrc_cs0->actim_ctrla,
 				  sdrc_cs0->actim_ctrlb, sdrc_cs0->mr,
 				  0, 0, 0, 0);
+	clk->rate = rate;
 
 	return 0;
 }
-- 
1.7.1

[PATCH] OMAP3: set the core dpll clk rate in its set_rate function.

From: paul@pwsan.com (Paul Walmsley)
Date: 2011-05-13 02:17:17

On Mon, 9 May 2011, Avinash.H.M wrote:
The debug l3_ick/rate is not displaying the actual rate of the clock in
hardware. This is because, the core dpll set_rate function doesn't update the
clk.rate. After fixing, the l3_ick/rate is displaying proper values.

Signed-off-by: Shweta Gulati <redacted>
Signed-off-by: Avinash.H.M <redacted>
Cc: Rajendra Nayak <redacted>
Cc: Paul Wamsley <paul@pwsan.com>
Acked-by: Paul Walmsley <paul@pwsan.com>

Thanks, let's see if we can get this into an -rc.


- Paul

[PATCH] OMAP3: set the core dpll clk rate in its set_rate function.

From: tony@atomide.com (Tony Lindgren)
Date: 2011-05-13 14:06:28

* Paul Walmsley [off-list ref] [110513 05:13]:
On Mon, 9 May 2011, Avinash.H.M wrote:
quoted
The debug l3_ick/rate is not displaying the actual rate of the clock in
hardware. This is because, the core dpll set_rate function doesn't update the
clk.rate. After fixing, the l3_ick/rate is displaying proper values.

Signed-off-by: Shweta Gulati <redacted>
Signed-off-by: Avinash.H.M <redacted>
Cc: Rajendra Nayak <redacted>
Cc: Paul Wamsley <paul@pwsan.com>
Acked-by: Paul Walmsley <paul@pwsan.com>

Thanks, let's see if we can get this into an -rc.
Might be out of time as we still should have this sit in
for-next too. Anyways, adding into devel-fixes.

Tony
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help