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

* Re: [PATCH v2] ARM: OMAP2+: dmtimer: remove redundant sysconfig context restore
  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
  1 sibling, 0 replies; 4+ messages in thread
From: Santosh Shilimkar @ 2012-04-12 10:09 UTC (permalink / raw)
  To: Tarun Kanti DebBarma; +Cc: linux-omap, tony, khilman, rnayak, b-cousson

On Thursday 12 April 2012 03:13 PM, Tarun Kanti DebBarma wrote:
> 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 {}
> 
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>

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

* Re: [PATCH v2] ARM: OMAP2+: dmtimer: remove redundant sysconfig context restore
  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
  1 sibling, 1 reply; 4+ messages in thread
From: Kevin Hilman @ 2012-04-12 14:23 UTC (permalink / raw)
  To: Tarun Kanti DebBarma
  Cc: linux-omap, tony, santosh.shilimkar, rnayak, b-cousson

Tarun Kanti DebBarma <tarun.kanti@ti.com> writes:

> 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 {}

Acked-by: Kevin Hilman <khilman@ti.com>

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

* Re: [PATCH v2] ARM: OMAP2+: dmtimer: remove redundant sysconfig context restore
  2012-04-12 14:23 ` Kevin Hilman
@ 2012-05-08 23:18   ` Tony Lindgren
  0 siblings, 0 replies; 4+ messages in thread
From: Tony Lindgren @ 2012-05-08 23:18 UTC (permalink / raw)
  To: Kevin Hilman
  Cc: Tarun Kanti DebBarma, linux-omap, santosh.shilimkar, rnayak, b-cousson

* Kevin Hilman <khilman@ti.com> [120412 07:26]:
> Tarun Kanti DebBarma <tarun.kanti@ti.com> writes:
> 
> > 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 {}
> 
> Acked-by: Kevin Hilman <khilman@ti.com>

Applying into cleanup branch.

Tony

^ permalink raw reply	[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.