All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] ARM: OMAP2+: dmtimer: remove redundant sysconfig context restore
@ 2012-04-12  9:43 Tarun Kanti DebBarma
  2012-04-12 10:09 ` Santosh Shilimkar
  2012-04-12 14:23 ` Kevin Hilman
  0 siblings, 2 replies; 4+ messages in thread
From: Tarun Kanti DebBarma @ 2012-04-12  9:43 UTC (permalink / raw)
  To: linux-omap
  Cc: tony, khilman, santosh.shilimkar, rnayak, b-cousson,
	Tarun Kanti DebBarma

Since hwmod framework now manages sysconfig context save/restore
there is no more need to touch this register in driver. Hence,
remove restore of sysconfig register in omap_timer_restore_context.
This was causing incorrect context restore of sysconfig register.

Signed-off-by: Tarun Kanti DebBarma <tarun.kanti@ti.com>
---
v2: removed tiocp_cfg from struct timer_regs {}

 arch/arm/plat-omap/dmtimer.c              |    2 --
 arch/arm/plat-omap/include/plat/dmtimer.h |    1 -
 2 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/arch/arm/plat-omap/dmtimer.c b/arch/arm/plat-omap/dmtimer.c
index 652139c..15e7882 100644
--- a/arch/arm/plat-omap/dmtimer.c
+++ b/arch/arm/plat-omap/dmtimer.c
@@ -82,8 +82,6 @@ static void omap_dm_timer_write_reg(struct omap_dm_timer *timer, u32 reg,
 
 static void omap_timer_restore_context(struct omap_dm_timer *timer)
 {
-	__raw_writel(timer->context.tiocp_cfg,
-			timer->io_base + OMAP_TIMER_OCP_CFG_OFFSET);
 	if (timer->revision == 1)
 		__raw_writel(timer->context.tistat, timer->sys_stat);
 
diff --git a/arch/arm/plat-omap/include/plat/dmtimer.h b/arch/arm/plat-omap/include/plat/dmtimer.h
index 9418f00..a4c08d0 100644
--- a/arch/arm/plat-omap/include/plat/dmtimer.h
+++ b/arch/arm/plat-omap/include/plat/dmtimer.h
@@ -75,7 +75,6 @@ struct clk;
 
 struct timer_regs {
 	u32 tidr;
-	u32 tiocp_cfg;
 	u32 tistat;
 	u32 tisr;
 	u32 tier;
-- 
1.7.0.4


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

end of thread, other threads:[~2012-05-08 23:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-12  9:43 [PATCH v2] ARM: OMAP2+: dmtimer: remove redundant sysconfig context restore Tarun Kanti DebBarma
2012-04-12 10:09 ` Santosh Shilimkar
2012-04-12 14:23 ` Kevin Hilman
2012-05-08 23:18   ` Tony Lindgren

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.