commit 66b9298878742f08cb6e79b7c7d5632d782fd1e1 (i2c: omap: switch over to do {} while loop) changed the interrupt handler to abort transfers in case interrupt serviced 100 times but commit's comment states that "No functional changes otherwise.". Also, original commit could report status 0 (no error) on aborted transfers. The patch restore original logic. In case interrupt serviced 100 times just quit interrupt handler and don't abort active transfer. Signed-off-by: Alexander Kochetkov <al.kochet@xxxxxxxxx> --- 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 9af7095..34b9011 100644 --- a/drivers/i2c/busses/i2c-omap.c +++ b/drivers/i2c/busses/i2c-omap.c @@ -920,7 +920,7 @@ omap_i2c_isr_thread(int this_irq, void *dev_id) dev_dbg(dev->dev, "IRQ (ISR = 0x%04x)\n", stat); if (count++ == 100) { dev_warn(dev->dev, "Too much work in one IRQ\n"); - break; + goto out; } if (stat & OMAP_I2C_STAT_NACK) { -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-i2c" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html