omap: i2c: don't check bus state IP rev3.3 and earlier
authorAlexander Kochetkov <al.kochet@gmail.com>
Mon, 24 Nov 2014 22:20:55 +0000 (02:20 +0400)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 25 Nov 2014 20:31:31 +0000 (21:31 +0100)
Commit 0f5768bf894f ("i2c: omap: implement workaround for handling
invalid BB-bit values") introduce the error result in boot test fault on
OMAP3530 boards.

The patch fix the error (disable i2c bus test for OMAP3530).

Reported-by: Kevin Hilman <khilman@kernel.org>
Signed-off-by: Alexander Kochetkov <al.kochet@gmail.com>
Fixes: 0f5768bf894f ("i2c: omap: implement workaround for handling invalid BB-bit values")
Tested-by: Tony Lindgren <tony@atomide.com>
Tested-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-omap.c

index 9f5b57a50c549adbf6e898a06cf5ff9a788ff4f1..94c2259e9af26ea1c94f85f89749bd748776f174 100644 (file)
@@ -344,8 +344,10 @@ static int omap_i2c_reset(struct omap_i2c_dev *dev)
                /* SYSC register is cleared by the reset; rewrite it */
                omap_i2c_write_reg(dev, OMAP_I2C_SYSC_REG, sysc);
 
-               /* Schedule I2C-bus monitoring on the next transfer */
-               dev->bb_valid = 0;
+               if (dev->rev > OMAP_I2C_REV_ON_3430_3530) {
+                       /* Schedule I2C-bus monitoring on the next transfer */
+                       dev->bb_valid = 0;
+               }
        }
 
        return 0;
@@ -460,7 +462,7 @@ static int omap_i2c_init(struct omap_i2c_dev *dev)
        dev->scllstate = scll;
        dev->sclhstate = sclh;
 
-       if (dev->rev < OMAP_I2C_OMAP1_REV_2) {
+       if (dev->rev <= OMAP_I2C_REV_ON_3430_3530) {
                /* Not implemented */
                dev->bb_valid = 1;
        }
This page took 0.029475 seconds and 5 git commands to generate.