9
0
Fork 0

i2c-omap: clear ARDY twice

This implements the fix from the kernel commit
4cdbf7d346e7461c3b93a26707c852e2c9db3753.

Signed-off-by: Jan Luebbe <jluebbe@debian.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Jan Luebbe 2015-07-30 16:52:07 +02:00 committed by Sascha Hauer
parent e1944fb6b2
commit 58fc376abf
1 changed files with 4 additions and 0 deletions

View File

@ -673,6 +673,10 @@ omap_i2c_isr(struct omap_i2c_struct *dev)
/*
* ProDB0017052: Clear ARDY bit twice
*/
if (stat & OMAP_I2C_STAT_ARDY)
omap_i2c_ack_stat(dev, OMAP_I2C_STAT_ARDY);
if (stat & (OMAP_I2C_STAT_ARDY | OMAP_I2C_STAT_NACK |
OMAP_I2C_STAT_AL)) {
omap_i2c_ack_stat(dev, (OMAP_I2C_STAT_RRDY |