public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] i2c: omap: errata i462: fix incorrect ack for arbitration lost interrupt
@ 2013-01-20  0:32 Aaro Koskinen
       [not found] ` <1358641978-9316-1-git-send-email-aaro.koskinen-X3B1VOXEql0@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Aaro Koskinen @ 2013-01-20  0:32 UTC (permalink / raw)
  To: w.sang, ben-linux, linux-omap, linux-i2c, balbi; +Cc: Aaro Koskinen

The errata handling function acks wrong interrupt in case of "Arbitration
lost". Fix it.

Discovered during code review, the real impact of the bug is unknown.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
---
 drivers/i2c/busses/i2c-omap.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
index 20d41bf..832f16e 100644
--- a/drivers/i2c/busses/i2c-omap.c
+++ b/drivers/i2c/busses/i2c-omap.c
@@ -803,7 +803,7 @@ static int errata_omap3_i462(struct omap_i2c_dev *dev)
 			if (stat & OMAP_I2C_STAT_AL) {
 				dev_err(dev->dev, "Arbitration lost\n");
 				dev->cmd_err |= OMAP_I2C_STAT_AL;
-				omap_i2c_ack_stat(dev, OMAP_I2C_STAT_NACK);
+				omap_i2c_ack_stat(dev, OMAP_I2C_STAT_AL);
 			}
 
 			return -EIO;
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-01-23  9:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-20  0:32 [PATCH] i2c: omap: errata i462: fix incorrect ack for arbitration lost interrupt Aaro Koskinen
     [not found] ` <1358641978-9316-1-git-send-email-aaro.koskinen-X3B1VOXEql0@public.gmane.org>
2013-01-20  9:19   ` Felipe Balbi
2013-01-23  9:57   ` Wolfram Sang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox