documentation is very unclear about how that
works and testing shows that driver works without
it.

Signed-off-by: Felipe Balbi <[email protected]>
---
 drivers/i2c/busses/i2c-omap.c |   22 ++--------------------
 1 file changed, 2 insertions(+), 20 deletions(-)

diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
index b9c9407..20f854d 100644
--- a/drivers/i2c/busses/i2c-omap.c
+++ b/drivers/i2c/busses/i2c-omap.c
@@ -474,9 +474,8 @@ static int omap_i2c_init(struct omap_i2c_dev *dev)
                dev->errata |= I2C_OMAP_ERRATA_I207;
 
        /* Enable interrupts */
-       dev->iestate = (OMAP_I2C_IE_XRDY | OMAP_I2C_IE_RRDY |
-                       OMAP_I2C_IE_ARDY | OMAP_I2C_IE_NACK |
-                       OMAP_I2C_IE_AL)  | ((dev->fifo_size) ?
+       dev->iestate = OMAP_I2C_IE_XRDY | OMAP_I2C_IE_RRDY |
+               OMAP_I2C_IE_NACK | OMAP_I2C_IE_AL  | ((dev->fifo_size) ?
                                (OMAP_I2C_IE_RDR | OMAP_I2C_IE_XDR) : 0);
        omap_i2c_write_reg(dev, OMAP_I2C_IE_REG, dev->iestate);
        if (dev->flags & OMAP_I2C_FLAG_RESET_REGS_POSTIDLE) {
@@ -923,23 +922,6 @@ omap_i2c_threaded_isr(int this_irq, void *dev_id)
                        return IRQ_HANDLED;
                }
 
-               if (stat & OMAP_I2C_STAT_ARDY)
-                       omap_i2c_ack_stat(dev, OMAP_I2C_STAT_ARDY);
-
-               /*
-                * ProDB0017052: Clear ARDY bit twice
-                */
-               if (stat & (OMAP_I2C_STAT_ARDY | OMAP_I2C_STAT_NACK |
-                                       OMAP_I2C_STAT_AL)) {
-                       omap_i2c_ack_stat(dev, (OMAP_I2C_STAT_RRDY |
-                                               OMAP_I2C_STAT_RDR |
-                                               OMAP_I2C_STAT_XRDY |
-                                               OMAP_I2C_STAT_XDR |
-                                               OMAP_I2C_STAT_ARDY));
-                       omap_i2c_complete_cmd(dev, err);
-                       return IRQ_HANDLED;
-               }
-
                if (stat & OMAP_I2C_STAT_RDR) {
                        u8 num_bytes = 1;
 
-- 
1.7.10.4

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

Reply via email to