public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH RESEND] I2C: OMAP: Add missing wakeup events
@ 2009-10-12 10:21 Aaro Koskinen
  2009-10-12 16:21 ` Sonasath, Moiz
  2009-10-12 16:35 ` Sonasath, Moiz
  0 siblings, 2 replies; 6+ messages in thread
From: Aaro Koskinen @ 2009-10-12 10:21 UTC (permalink / raw)
  To: ben-linux, linux-i2c; +Cc: linux-omap, j-pakaravoor

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

Include wake up events for receiver overflow and transmitter
underflow in OMAP_I2C_WE_REG configuration. Also fix a small
typo.

Signed-off-by: Jagadeesh Bhaskar Pakaravoor <j-pakaravoor@ti.com>
Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
---
 drivers/i2c/busses/i2c-omap.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
index 827da08..34ea9ed 100644
--- a/drivers/i2c/busses/i2c-omap.c
+++ b/drivers/i2c/busses/i2c-omap.c
@@ -92,8 +92,10 @@
 #define OMAP_I2C_STAT_AL	(1 << 0)	/* Arbitration lost int ena */
 
 /* I2C WE wakeup enable register */
-#define OMAP_I2C_WE_XDR_WE	(1 << 14)	/* TX drain wakup */
+#define OMAP_I2C_WE_XDR_WE	(1 << 14)	/* TX drain wakeup */
 #define OMAP_I2C_WE_RDR_WE	(1 << 13)	/* RX drain wakeup */
+#define OMAP_I2C_WE_ROVR_WE	(1 << 11)	/* RX overflow wakeup */
+#define OMAP_I2C_WE_XUDF_WE	(1 << 10)	/* TX underflow wakeup */
 #define OMAP_I2C_WE_AAS_WE	(1 << 9)	/* Address as slave wakeup*/
 #define OMAP_I2C_WE_BF_WE	(1 << 8)	/* Bus free wakeup */
 #define OMAP_I2C_WE_STC_WE	(1 << 6)	/* Start condition wakeup */
@@ -104,6 +106,7 @@
 #define OMAP_I2C_WE_AL_WE	(1 << 0)	/* Arbitration lost wakeup */
 
 #define OMAP_I2C_WE_ALL		(OMAP_I2C_WE_XDR_WE | OMAP_I2C_WE_RDR_WE | \
+				OMAP_I2C_WE_ROVR_WE | OMAP_I2C_WE_XUDF_WE | \
 				OMAP_I2C_WE_AAS_WE | OMAP_I2C_WE_BF_WE | \
 				OMAP_I2C_WE_STC_WE | OMAP_I2C_WE_GC_WE | \
 				OMAP_I2C_WE_DRDY_WE | OMAP_I2C_WE_ARDY_WE | \
-- 
1.6.0.4


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

* RE: [PATCH RESEND] I2C: OMAP: Add missing wakeup events
  2009-10-12 10:21 [PATCH RESEND] I2C: OMAP: Add missing wakeup events Aaro Koskinen
@ 2009-10-12 16:21 ` Sonasath, Moiz
  2009-10-12 16:35 ` Sonasath, Moiz
  1 sibling, 0 replies; 6+ messages in thread
From: Sonasath, Moiz @ 2009-10-12 16:21 UTC (permalink / raw)
  To: Aaro Koskinen, ben-linux@fluff.org, linux-i2c@vger.kernel.org
  Cc: linux-omap@vger.kernel.org, j-pakaravoor@ti.com

Hello Aaro!

> -----Original Message-----
> From: linux-omap-owner@vger.kernel.org [mailto:linux-omap-
> owner@vger.kernel.org] On Behalf Of Aaro Koskinen
> Sent: Monday, October 12, 2009 5:21 AM
> To: ben-linux@fluff.org; linux-i2c@vger.kernel.org
> Cc: linux-omap@vger.kernel.org; j-pakaravoor@ti.com
> Subject: [PATCH RESEND] I2C: OMAP: Add missing wakeup events
> 
> From: Jagadeesh Bhaskar Pakaravoor <j-pakaravoor@ti.com>
> 
> Include wake up events for receiver overflow and transmitter
> underflow in OMAP_I2C_WE_REG configuration. Also fix a small
> typo.
> 
> Signed-off-by: Jagadeesh Bhaskar Pakaravoor <j-pakaravoor@ti.com>
> Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
> ---
>  drivers/i2c/busses/i2c-omap.c |    5 ++++-
>  1 files changed, 4 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
> index 827da08..34ea9ed 100644
> --- a/drivers/i2c/busses/i2c-omap.c
> +++ b/drivers/i2c/busses/i2c-omap.c
> @@ -92,8 +92,10 @@
>  #define OMAP_I2C_STAT_AL	(1 << 0)	/* Arbitration lost int ena */
> 
>  /* I2C WE wakeup enable register */
> -#define OMAP_I2C_WE_XDR_WE	(1 << 14)	/* TX drain wakup */
> +#define OMAP_I2C_WE_XDR_WE	(1 << 14)	/* TX drain wakeup */
>  #define OMAP_I2C_WE_RDR_WE	(1 << 13)	/* RX drain wakeup */
> +#define OMAP_I2C_WE_ROVR_WE	(1 << 11)	/* RX overflow wakeup */
> +#define OMAP_I2C_WE_XUDF_WE	(1 << 10)	/* TX underflow wakeup */

These bits are not documented in OMAP3430, they are reserved. How can we use them?

>  #define OMAP_I2C_WE_AAS_WE	(1 << 9)	/* Address as slave wakeup*/
>  #define OMAP_I2C_WE_BF_WE	(1 << 8)	/* Bus free wakeup */
>  #define OMAP_I2C_WE_STC_WE	(1 << 6)	/* Start condition wakeup */
> @@ -104,6 +106,7 @@
>  #define OMAP_I2C_WE_AL_WE	(1 << 0)	/* Arbitration lost wakeup */
> 
>  #define OMAP_I2C_WE_ALL		(OMAP_I2C_WE_XDR_WE |
> OMAP_I2C_WE_RDR_WE | \
> +				OMAP_I2C_WE_ROVR_WE | OMAP_I2C_WE_XUDF_WE | \
>  				OMAP_I2C_WE_AAS_WE | OMAP_I2C_WE_BF_WE | \
>  				OMAP_I2C_WE_STC_WE | OMAP_I2C_WE_GC_WE | \
>  				OMAP_I2C_WE_DRDY_WE | OMAP_I2C_WE_ARDY_WE | \
> --
> 1.6.0.4
> 
> --
> 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

Regards
Moiz Sonasath


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

* RE: [PATCH RESEND] I2C: OMAP: Add missing wakeup events
  2009-10-12 10:21 [PATCH RESEND] I2C: OMAP: Add missing wakeup events Aaro Koskinen
  2009-10-12 16:21 ` Sonasath, Moiz
@ 2009-10-12 16:35 ` Sonasath, Moiz
       [not found]   ` <CD8CC2B65FEE304DA95744A5472698F2029E37200E-UmuGNrFEPrGIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
  1 sibling, 1 reply; 6+ messages in thread
From: Sonasath, Moiz @ 2009-10-12 16:35 UTC (permalink / raw)
  To: Aaro Koskinen, ben-linux@fluff.org, linux-i2c@vger.kernel.org
  Cc: linux-omap@vger.kernel.org

Hello Aaro!

> -----Original Message-----
> From: linux-omap-owner@vger.kernel.org [mailto:linux-omap-
> owner@vger.kernel.org] On Behalf Of Aaro Koskinen
> Sent: Monday, October 12, 2009 5:21 AM
> To: ben-linux@fluff.org; linux-i2c@vger.kernel.org
> Cc: linux-omap@vger.kernel.org; j-pakaravoor@ti.com
> Subject: [PATCH RESEND] I2C: OMAP: Add missing wakeup events
> 
> From: Jagadeesh Bhaskar Pakaravoor <j-pakaravoor@ti.com>
> 
> Include wake up events for receiver overflow and transmitter
> underflow in OMAP_I2C_WE_REG configuration. Also fix a small
> typo.
> 
> Signed-off-by: Jagadeesh Bhaskar Pakaravoor <j-pakaravoor@ti.com>
> Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
> ---
>  drivers/i2c/busses/i2c-omap.c |    5 ++++-
>  1 files changed, 4 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
> index 827da08..34ea9ed 100644
> --- a/drivers/i2c/busses/i2c-omap.c
> +++ b/drivers/i2c/busses/i2c-omap.c
> @@ -92,8 +92,10 @@
>  #define OMAP_I2C_STAT_AL	(1 << 0)	/* Arbitration lost int ena */
> 
>  /* I2C WE wakeup enable register */
> -#define OMAP_I2C_WE_XDR_WE	(1 << 14)	/* TX drain wakup */
> +#define OMAP_I2C_WE_XDR_WE	(1 << 14)	/* TX drain wakeup */
>  #define OMAP_I2C_WE_RDR_WE	(1 << 13)	/* RX drain wakeup */
> +#define OMAP_I2C_WE_ROVR_WE	(1 << 11)	/* RX overflow wakeup */
> +#define OMAP_I2C_WE_XUDF_WE	(1 << 10)	/* TX underflow wakeup */

These bits are not documented in OMAP3430, they are reserved. How can they be used?

>  #define OMAP_I2C_WE_AAS_WE	(1 << 9)	/* Address as slave wakeup*/
>  #define OMAP_I2C_WE_BF_WE	(1 << 8)	/* Bus free wakeup */
>  #define OMAP_I2C_WE_STC_WE	(1 << 6)	/* Start condition wakeup */
> @@ -104,6 +106,7 @@
>  #define OMAP_I2C_WE_AL_WE	(1 << 0)	/* Arbitration lost wakeup */
> 
>  #define OMAP_I2C_WE_ALL		(OMAP_I2C_WE_XDR_WE |
> OMAP_I2C_WE_RDR_WE | \
> +				OMAP_I2C_WE_ROVR_WE | OMAP_I2C_WE_XUDF_WE | \
>  				OMAP_I2C_WE_AAS_WE | OMAP_I2C_WE_BF_WE | \
>  				OMAP_I2C_WE_STC_WE | OMAP_I2C_WE_GC_WE | \
>  				OMAP_I2C_WE_DRDY_WE | OMAP_I2C_WE_ARDY_WE | \
> --
> 1.6.0.4
> 
> --
> 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

Regards
Moiz Sonasath

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

* Re: [PATCH RESEND] I2C: OMAP: Add missing wakeup events
       [not found]   ` <CD8CC2B65FEE304DA95744A5472698F2029E37200E-UmuGNrFEPrGIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
@ 2009-10-13  9:52     ` Aaro Koskinen
  2009-10-13 22:12       ` Sonasath, Moiz
  0 siblings, 1 reply; 6+ messages in thread
From: Aaro Koskinen @ 2009-10-13  9:52 UTC (permalink / raw)
  To: ext Sonasath, Moiz
  Cc: ben-linux-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org,
	linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

Hello,

Sonasath, Moiz wrote:
>> From: Jagadeesh Bhaskar Pakaravoor <j-pakaravoor-l0cyMroinI0@public.gmane.org>
>>
>> Include wake up events for receiver overflow and transmitter
>> underflow in OMAP_I2C_WE_REG configuration. Also fix a small
>> typo.
>>
>> Signed-off-by: Jagadeesh Bhaskar Pakaravoor <j-pakaravoor-l0cyMroinI0@public.gmane.org>
>> Signed-off-by: Aaro Koskinen <aaro.koskinen-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
>> ---
>>  drivers/i2c/busses/i2c-omap.c |    5 ++++-
>>  1 files changed, 4 insertions(+), 1 deletions(-)
>>
>> diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
>> index 827da08..34ea9ed 100644
>> --- a/drivers/i2c/busses/i2c-omap.c
>> +++ b/drivers/i2c/busses/i2c-omap.c
>> @@ -92,8 +92,10 @@
>>  #define OMAP_I2C_STAT_AL	(1 << 0)	/* Arbitration lost int ena */
>>
>>  /* I2C WE wakeup enable register */
>> -#define OMAP_I2C_WE_XDR_WE	(1 << 14)	/* TX drain wakup */
>> +#define OMAP_I2C_WE_XDR_WE	(1 << 14)	/* TX drain wakeup */
>>  #define OMAP_I2C_WE_RDR_WE	(1 << 13)	/* RX drain wakeup */
>> +#define OMAP_I2C_WE_ROVR_WE	(1 << 11)	/* RX overflow wakeup */
>> +#define OMAP_I2C_WE_XUDF_WE	(1 << 10)	/* TX underflow wakeup */
> 
> These bits are not documented in OMAP3430, they are reserved. How can they be used?

Hmm, that's a valid point. I will have to check if I can find more info on the background of this patch.

A.

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

* RE: [PATCH RESEND] I2C: OMAP: Add missing wakeup events
  2009-10-13  9:52     ` Aaro Koskinen
@ 2009-10-13 22:12       ` Sonasath, Moiz
  2009-10-14 13:25         ` Woodruff, Richard
  0 siblings, 1 reply; 6+ messages in thread
From: Sonasath, Moiz @ 2009-10-13 22:12 UTC (permalink / raw)
  To: Aaro Koskinen
  Cc: ben-linux@fluff.org, linux-i2c@vger.kernel.org,
	linux-omap@vger.kernel.org

Hello Aaro!

> -----Original Message-----
> From: Aaro Koskinen [mailto:aaro.koskinen@nokia.com]
> Sent: Tuesday, October 13, 2009 4:52 AM
> To: Sonasath, Moiz
> Cc: ben-linux@fluff.org; linux-i2c@vger.kernel.org; linux-
> omap@vger.kernel.org
> Subject: Re: [PATCH RESEND] I2C: OMAP: Add missing wakeup events
> 
> Hello,
> 
> Sonasath, Moiz wrote:
> >> From: Jagadeesh Bhaskar Pakaravoor <j-pakaravoor@ti.com>
> >>
> >> Include wake up events for receiver overflow and transmitter
> >> underflow in OMAP_I2C_WE_REG configuration. Also fix a small
> >> typo.
> >>
> >> Signed-off-by: Jagadeesh Bhaskar Pakaravoor <j-pakaravoor@ti.com>
> >> Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
> >> ---
> >>  drivers/i2c/busses/i2c-omap.c |    5 ++++-
> >>  1 files changed, 4 insertions(+), 1 deletions(-)
> >>
> >> diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-
> omap.c
> >> index 827da08..34ea9ed 100644
> >> --- a/drivers/i2c/busses/i2c-omap.c
> >> +++ b/drivers/i2c/busses/i2c-omap.c
> >> @@ -92,8 +92,10 @@
> >>  #define OMAP_I2C_STAT_AL	(1 << 0)	/* Arbitration lost int ena */
> >>
> >>  /* I2C WE wakeup enable register */
> >> -#define OMAP_I2C_WE_XDR_WE	(1 << 14)	/* TX drain wakup */
> >> +#define OMAP_I2C_WE_XDR_WE	(1 << 14)	/* TX drain wakeup */
> >>  #define OMAP_I2C_WE_RDR_WE	(1 << 13)	/* RX drain wakeup */
> >> +#define OMAP_I2C_WE_ROVR_WE	(1 << 11)	/* RX overflow wakeup */
> >> +#define OMAP_I2C_WE_XUDF_WE	(1 << 10)	/* TX underflow wakeup */
> >
> > These bits are not documented in OMAP3430, they are reserved. How can
> they be used?
> 
> Hmm, that's a valid point. I will have to check if I can find more info on
> the background of this patch.

AFAIK, these bits have been introduced in OMAP3630 as it has a new IP block for I2C. But these bits are reserved bits for OMAP3430.

> 
> A.


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

* RE: [PATCH RESEND] I2C: OMAP: Add missing wakeup events
  2009-10-13 22:12       ` Sonasath, Moiz
@ 2009-10-14 13:25         ` Woodruff, Richard
  0 siblings, 0 replies; 6+ messages in thread
From: Woodruff, Richard @ 2009-10-14 13:25 UTC (permalink / raw)
  To: Sonasath, Moiz, Aaro Koskinen
  Cc: ben-linux@fluff.org, linux-i2c@vger.kernel.org,
	linux-omap@vger.kernel.org

> > >>  /* I2C WE wakeup enable register */
> > >> -#define OMAP_I2C_WE_XDR_WE      (1 << 14)       /* TX drain wakup */
> > >> +#define OMAP_I2C_WE_XDR_WE      (1 << 14)       /* TX drain wakeup */
> > >>  #define OMAP_I2C_WE_RDR_WE      (1 << 13)       /* RX drain wakeup */
> > >> +#define OMAP_I2C_WE_ROVR_WE     (1 << 11)       /* RX overflow wakeup */
> > >> +#define OMAP_I2C_WE_XUDF_WE     (1 << 10)       /* TX underflow wakeup */
> > >
> > > These bits are not documented in OMAP3430, they are reserved. How can
> > they be used?
> >
> > Hmm, that's a valid point. I will have to check if I can find more info on
> > the background of this patch.
>
> AFAIK, these bits have been introduced in OMAP3630 as it has a new IP block
> for I2C. But these bits are reserved bits for OMAP3430.

Couple notes:
        - IP block is updated but it is not new.  These should just be some reserved bits converted.  New bits expand wakeup capability and enhance FIFO operation with DMA.

        - Driver for a while supported OMAP1/2420 style I2C and OMAP2430/3/4 style I2C.  Definitions between broad class drivers are different.  The interrupt handler is easiest to see this.  This is not so relevant to above bits but is good to keep in mind.

Regards,
Richard W.


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

end of thread, other threads:[~2009-10-14 13:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-12 10:21 [PATCH RESEND] I2C: OMAP: Add missing wakeup events Aaro Koskinen
2009-10-12 16:21 ` Sonasath, Moiz
2009-10-12 16:35 ` Sonasath, Moiz
     [not found]   ` <CD8CC2B65FEE304DA95744A5472698F2029E37200E-UmuGNrFEPrGIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2009-10-13  9:52     ` Aaro Koskinen
2009-10-13 22:12       ` Sonasath, Moiz
2009-10-14 13:25         ` Woodruff, Richard

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