aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/i2c/busses/i2c-omap.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
index 608038d64f81..17476ecd9782 100644
--- a/drivers/i2c/busses/i2c-omap.c
+++ b/drivers/i2c/busses/i2c-omap.c
@@ -328,8 +328,12 @@ static int omap_i2c_xfer_msg(struct i2c_adapter *adap,
328 w |= OMAP_I2C_CON_STP; 328 w |= OMAP_I2C_CON_STP;
329 omap_i2c_write_reg(dev, OMAP_I2C_CON_REG, w); 329 omap_i2c_write_reg(dev, OMAP_I2C_CON_REG, w);
330 330
331 r = wait_for_completion_interruptible_timeout(&dev->cmd_complete, 331 /*
332 OMAP_I2C_TIMEOUT); 332 * REVISIT: We should abort the transfer on signals, but the bus goes
333 * into arbitration and we're currently unable to recover from it.
334 */
335 r = wait_for_completion_timeout(&dev->cmd_complete,
336 OMAP_I2C_TIMEOUT);
333 dev->buf_len = 0; 337 dev->buf_len = 0;
334 if (r < 0) 338 if (r < 0)
335 return r; 339 return r;