public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] TWL4030-RTC: Remove obsolete comment
@ 2008-08-19 14:20 Pakaravoor, Jagadeesh
  2008-08-19 14:42 ` Felipe Balbi
  0 siblings, 1 reply; 4+ messages in thread
From: Pakaravoor, Jagadeesh @ 2008-08-19 14:20 UTC (permalink / raw)
  To: linux-omap@vger.kernel.org

From: Jagadeesh Bhaskar Pakaravoor <j-pakaravoor@ti.com>

TWL4030-RTC: Remove obsolete comment.

Signed-off-by: Jagadeesh Bhaskar Pakaravoor <j-pakaravoor@ti.com>
Index: my-local-git-dir/drivers/rtc/rtc-twl4030.c
===================================================================
--- my-local-git-dir.orig/drivers/rtc/rtc-twl4030.c	2008-08-19 19:20:24.000000000 +0530
+++ my-local-git-dir/drivers/rtc/rtc-twl4030.c	2008-08-19 19:28:43.037746119 +0530
@@ -446,12 +446,6 @@ static irqreturn_t twl4030_rtc_interrupt
 				   REG_RTC_STATUS_REG);
 	if (res)
 		goto out;
-	/*
-	 * Workaround for strange behaviour with T2. Need to write into ISR
-	 * register one more time to clear the interrupt. Otherwise, the same
-	 * RTC event generates 2 interrupts in a row.
-	 * (no errata document available)
-	 */
 	res = twl4030_i2c_write_u8(TWL4030_MODULE_INT,
 			PWR_RTC_INT_CLR, REG_PWR_ISR1);
 	if (res)

--
With Regards,
Jagadeesh Bhaskar P
 
----------------------------
Some men see things as they are and say why - I dream things that never were and say why not.
- George Bernard Shaw
-------------------


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

* Re: [PATCH] TWL4030-RTC: Remove obsolete comment
  2008-08-19 14:20 [PATCH] TWL4030-RTC: Remove obsolete comment Pakaravoor, Jagadeesh
@ 2008-08-19 14:42 ` Felipe Balbi
  2008-08-19 14:59   ` Pakaravoor, Jagadeesh
  0 siblings, 1 reply; 4+ messages in thread
From: Felipe Balbi @ 2008-08-19 14:42 UTC (permalink / raw)
  To: ext Pakaravoor, Jagadeesh; +Cc: linux-omap@vger.kernel.org

On Tue, Aug 19, 2008 at 07:50:26PM +0530, ext Pakaravoor, Jagadeesh wrote:
> From: Jagadeesh Bhaskar Pakaravoor <j-pakaravoor@ti.com>
> 
> TWL4030-RTC: Remove obsolete comment.
> 
> Signed-off-by: Jagadeesh Bhaskar Pakaravoor <j-pakaravoor@ti.com>
> Index: my-local-git-dir/drivers/rtc/rtc-twl4030.c
> ===================================================================
> --- my-local-git-dir.orig/drivers/rtc/rtc-twl4030.c	2008-08-19 19:20:24.000000000 +0530
> +++ my-local-git-dir/drivers/rtc/rtc-twl4030.c	2008-08-19 19:28:43.037746119 +0530
> @@ -446,12 +446,6 @@ static irqreturn_t twl4030_rtc_interrupt
>  				   REG_RTC_STATUS_REG);
>  	if (res)
>  		goto out;
> -	/*
> -	 * Workaround for strange behaviour with T2. Need to write into ISR
> -	 * register one more time to clear the interrupt. Otherwise, the same
> -	 * RTC event generates 2 interrupts in a row.
> -	 * (no errata document available)
> -	 */
>  	res = twl4030_i2c_write_u8(TWL4030_MODULE_INT,
>  			PWR_RTC_INT_CLR, REG_PWR_ISR1);
>  	if (res)

Why is this obsolete? Seems quite a good comment to me. Removing it
might turn into someone removing that line and make t2's rtc misbehave.

Maybe you wanna remove only the "no errata" line if there is any errata
available but the comment itself is quite valuable.

-- 
balbi

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

* RE: [PATCH] TWL4030-RTC: Remove obsolete comment
  2008-08-19 14:42 ` Felipe Balbi
@ 2008-08-19 14:59   ` Pakaravoor, Jagadeesh
  2008-08-20 12:29     ` Tony Lindgren
  0 siblings, 1 reply; 4+ messages in thread
From: Pakaravoor, Jagadeesh @ 2008-08-19 14:59 UTC (permalink / raw)
  To: felipe.balbi@nokia.com; +Cc: linux-omap@vger.kernel.org

> -----Original Message-----
> From: Felipe Balbi [mailto:felipe.balbi@nokia.com]
> Sent: Tuesday, August 19, 2008 8:12 PM
> To: Pakaravoor, Jagadeesh
> Cc: linux-omap@vger.kernel.org
> Subject: Re: [PATCH] TWL4030-RTC: Remove obsolete comment
> 
> On Tue, Aug 19, 2008 at 07:50:26PM +0530, ext Pakaravoor, Jagadeesh wrote:
> > From: Jagadeesh Bhaskar Pakaravoor <j-pakaravoor@ti.com>
> >
> > TWL4030-RTC: Remove obsolete comment.
> >
> > Signed-off-by: Jagadeesh Bhaskar Pakaravoor <j-pakaravoor@ti.com>
> > Index: my-local-git-dir/drivers/rtc/rtc-twl4030.c
> > ===================================================================
> > --- my-local-git-dir.orig/drivers/rtc/rtc-twl4030.c	2008-08-19 19:20:24.000000000 +0530
> > +++ my-local-git-dir/drivers/rtc/rtc-twl4030.c	2008-08-19 19:28:43.037746119 +0530
> > @@ -446,12 +446,6 @@ static irqreturn_t twl4030_rtc_interrupt
> >  				   REG_RTC_STATUS_REG);
> >  	if (res)
> >  		goto out;
> > -	/*
> > -	 * Workaround for strange behaviour with T2. Need to write into ISR
> > -	 * register one more time to clear the interrupt. Otherwise, the same
> > -	 * RTC event generates 2 interrupts in a row.
> > -	 * (no errata document available)
> > -	 */
> >  	res = twl4030_i2c_write_u8(TWL4030_MODULE_INT,
> >  			PWR_RTC_INT_CLR, REG_PWR_ISR1);
> >  	if (res)
> 
> Why is this obsolete? Seems quite a good comment to me. Removing it
> might turn into someone removing that line and make t2's rtc misbehave.
> 
> Maybe you wanna remove only the "no errata" line if there is any errata
> available but the comment itself is quite valuable.
> 

Currently there is only one write to the ISR (REG_PWR_ISR1), where as previously there used to be two writes. So the comment is no more valid.

--
Jagadeesh

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

* Re: [PATCH] TWL4030-RTC: Remove obsolete comment
  2008-08-19 14:59   ` Pakaravoor, Jagadeesh
@ 2008-08-20 12:29     ` Tony Lindgren
  0 siblings, 0 replies; 4+ messages in thread
From: Tony Lindgren @ 2008-08-20 12:29 UTC (permalink / raw)
  To: Pakaravoor, Jagadeesh; +Cc: felipe.balbi@nokia.com, linux-omap@vger.kernel.org

* Pakaravoor, Jagadeesh <j-pakaravoor@ti.com> [080819 18:09]:
> > -----Original Message-----
> > From: Felipe Balbi [mailto:felipe.balbi@nokia.com]
> > Sent: Tuesday, August 19, 2008 8:12 PM
> > To: Pakaravoor, Jagadeesh
> > Cc: linux-omap@vger.kernel.org
> > Subject: Re: [PATCH] TWL4030-RTC: Remove obsolete comment
> > 
> > On Tue, Aug 19, 2008 at 07:50:26PM +0530, ext Pakaravoor, Jagadeesh wrote:
> > > From: Jagadeesh Bhaskar Pakaravoor <j-pakaravoor@ti.com>
> > >
> > > TWL4030-RTC: Remove obsolete comment.
> > >
> > > Signed-off-by: Jagadeesh Bhaskar Pakaravoor <j-pakaravoor@ti.com>
> > > Index: my-local-git-dir/drivers/rtc/rtc-twl4030.c
> > > ===================================================================
> > > --- my-local-git-dir.orig/drivers/rtc/rtc-twl4030.c	2008-08-19 19:20:24.000000000 +0530
> > > +++ my-local-git-dir/drivers/rtc/rtc-twl4030.c	2008-08-19 19:28:43.037746119 +0530
> > > @@ -446,12 +446,6 @@ static irqreturn_t twl4030_rtc_interrupt
> > >  				   REG_RTC_STATUS_REG);
> > >  	if (res)
> > >  		goto out;
> > > -	/*
> > > -	 * Workaround for strange behaviour with T2. Need to write into ISR
> > > -	 * register one more time to clear the interrupt. Otherwise, the same
> > > -	 * RTC event generates 2 interrupts in a row.
> > > -	 * (no errata document available)
> > > -	 */
> > >  	res = twl4030_i2c_write_u8(TWL4030_MODULE_INT,
> > >  			PWR_RTC_INT_CLR, REG_PWR_ISR1);
> > >  	if (res)
> > 
> > Why is this obsolete? Seems quite a good comment to me. Removing it
> > might turn into someone removing that line and make t2's rtc misbehave.
> > 
> > Maybe you wanna remove only the "no errata" line if there is any errata
> > available but the comment itself is quite valuable.
> > 
> 
> Currently there is only one write to the ISR (REG_PWR_ISR1), where as previously there used to be two writes. So the comment is no more valid.

Sounds like a valid patch then. Pushing today.

Tony



> 
> --
> Jagadeesh
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2008-08-20 12:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-19 14:20 [PATCH] TWL4030-RTC: Remove obsolete comment Pakaravoor, Jagadeesh
2008-08-19 14:42 ` Felipe Balbi
2008-08-19 14:59   ` Pakaravoor, Jagadeesh
2008-08-20 12:29     ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox