mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 20:22:09 +00:00
i2c: omap: errata i462: fix incorrect ack for arbitration lost interrupt
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> Reviewed-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
This commit is contained in:
parent
43a2bd42d0
commit
2c5de558cd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user