From 382ca415c67dbfa26913b9ffbaafdc99ed7d8bbb Mon Sep 17 00:00:00 2001 From: "Mike J. Chen" Date: Tue, 7 Jun 2011 15:35:34 -0700 Subject: I2C: omap: Fix error condition when slave sends a NAK Fix an issue in the omap i2c host controller driver where it was not properly clearing out an error condition in the unit after a NAK'ed transaction causing the subsequent transaction to time out. Change-Id: I5cdc8e740acdbc8116dca4d13f1a2cee37f75582 Signed-off-by: Mike J. Chen Signed-off-by: Ruslan Bilovol --- drivers/i2c/busses/i2c-omap.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/i2c/busses') diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 1250137..75d15bc 100644 --- a/drivers/i2c/busses/i2c-omap.c +++ b/drivers/i2c/busses/i2c-omap.c @@ -666,6 +666,7 @@ static int omap_i2c_xfer_msg(struct i2c_adapter *adap, w |= OMAP_I2C_CON_STP; omap_i2c_write_reg(dev, OMAP_I2C_CON_REG, w); } + omap_i2c_init(dev); return -EREMOTEIO; } return -EIO; -- cgit v1.1