Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dd11976a authored by Moiz Sonasath's avatar Moiz Sonasath Committed by Ben Dooks
Browse files

i2c-omap: ACK pending [R/X]DR and [R/X]RDY interrupts



ACK any pending read/write interrupts before exiting the ISR either after
completing the operation [ARDY interrupt] or in case of an error
[NACK|AL interrupt]

Signed-off-by: default avatarMoiz Sonasath <m-sonasath@ti.com>
Signed-off-by: default avatarVikram Pandita <vikram.pandita@ti.com>
Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
parent dcc4ec26
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -694,6 +694,9 @@ omap_i2c_isr(int this_irq, void *dev_id)
		}
		if (stat & (OMAP_I2C_STAT_ARDY | OMAP_I2C_STAT_NACK |
					OMAP_I2C_STAT_AL)) {
			omap_i2c_ack_stat(dev, stat &
				(OMAP_I2C_STAT_RRDY | OMAP_I2C_STAT_RDR |
				OMAP_I2C_STAT_XRDY | OMAP_I2C_STAT_XDR));
			omap_i2c_complete_cmd(dev, err);
			return IRQ_HANDLED;
		}