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>
This commit is contained in:
Jan Luebbe 2015-07-08 15:10:54 +02:00
parent 21203581e7
commit 96617c5ef3
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 |