[PATCH 3/3] i2c-omap: Enable workaround for Errata 1.153 based on

2009-08-20 Thread Moiz Sonasath
Silicon Errata 1.153 has been fixed on OMAP 3630|4430 with the use of a later
version of I2C IP block.

The errata impacts OMAP 2420|2430|3430, enable the workaround for these based 
on I2C IP block revision number instead of OMAP CPU type

Signed-off-by: Moiz Sonasath 
Signed-off-by: Vikram Pandita 
---
 drivers/i2c/busses/i2c-omap.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
index 16b39f4..827da08 100644
--- a/drivers/i2c/busses/i2c-omap.c
+++ b/drivers/i2c/busses/i2c-omap.c
@@ -784,7 +784,7 @@ complete:
 * memory to the I2C interface.
 */
 
-   if (cpu_is_omap34xx()) {
+   if (dev->rev <= OMAP_I2C_REV_ON_3430) {
while (!(stat & 
OMAP_I2C_STAT_XUDF)) {
if (stat & 
(OMAP_I2C_STAT_NACK | OMAP_I2C_STAT_AL)) {

omap_i2c_ack_stat(dev, stat & (OMAP_I2C_STAT_XRDY | OMAP_I2C_STAT_XDR));
-- 
1.5.6.3

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


Re: [PATCH 3/3] i2c-omap: Enable workaround for Errata 1.153 based on

2009-08-18 Thread Paul Walmsley
On Mon, 17 Aug 2009, Moiz Sonasath wrote:

> Silicon Errata 1.153 has been fixed on OMAP 3630|4430 with the use of a later
> version of I2C IP block.
> 
> The errata impacts OMAP 2420|2430|3430, enable the workaround for these based 
> on I2C IP block revision number instead of OMAP CPU type
> 
> Signed-off-by: Moiz Sonasath 
> Signed-off-by: Vikram Pandita 

> ---
>  drivers/i2c/busses/i2c-omap.c |2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
> index 16b39f4..827da08 100644
> --- a/drivers/i2c/busses/i2c-omap.c
> +++ b/drivers/i2c/busses/i2c-omap.c
> @@ -784,7 +784,7 @@ complete:
>* memory to the I2C interface.
>*/
>  
> - if (cpu_is_omap34xx()) {
> + if (dev->rev <= OMAP_I2C_REV_ON_3430) {
>   while (!(stat & 
> OMAP_I2C_STAT_XUDF)) {
>   if (stat & 
> (OMAP_I2C_STAT_NACK | OMAP_I2C_STAT_AL)) {
>   
> omap_i2c_ack_stat(dev, stat & (OMAP_I2C_STAT_XRDY | OMAP_I2C_STAT_XDR));
> -- 
> 1.5.6.3
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


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


[PATCH 3/3] i2c-omap: Enable workaround for Errata 1.153 based on

2009-08-17 Thread Moiz Sonasath
Silicon Errata 1.153 has been fixed on OMAP 3630|4430 with the use of a later
version of I2C IP block.

The errata impacts OMAP 2420|2430|3430, enable the workaround for these based 
on I2C IP block revision number instead of OMAP CPU type

Signed-off-by: Moiz Sonasath 
Signed-off-by: Vikram Pandita rev <= OMAP_I2C_REV_ON_3430) {
while (!(stat & 
OMAP_I2C_STAT_XUDF)) {
if (stat & 
(OMAP_I2C_STAT_NACK | OMAP_I2C_STAT_AL)) {

omap_i2c_ack_stat(dev, stat & (OMAP_I2C_STAT_XRDY | OMAP_I2C_STAT_XDR));
-- 
1.5.6.3

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


[PATCH 3/3] i2c-omap: Enable workaround for Errata 1.153 based on

2009-08-17 Thread n
From: Moiz Sonasath 

Silicon Errata 1.153 has been fixed on OMAP 3630|4430 with the use of a later
version of I2C IP block.

The errata impacts OMAP 2420|2430|3430, enable the workaround for these based 
on I2C IP block revision number instead of OMAP CPU type

Signed-off-by: Moiz Sonasath 
Signed-off-by: Vikram Pandita rev <= OMAP_I2C_REV_ON_3430) {
while (!(stat & 
OMAP_I2C_STAT_XUDF)) {
if (stat & 
(OMAP_I2C_STAT_NACK | OMAP_I2C_STAT_AL)) {

omap_i2c_ack_stat(dev, stat & (OMAP_I2C_STAT_XRDY | OMAP_I2C_STAT_XDR));
-- 
1.5.6.3

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