We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 28a31a5 + 31367b8 commit 7f4f766Copy full SHA for 7f4f766
1 file changed
drivers/i2c/busses/i2c-at91.c
@@ -518,16 +518,8 @@ static irqreturn_t atmel_twi_interrupt(int irq, void *dev_id)
518
* the RXRDY interrupt first in order to not keep garbage data in the
519
* Receive Holding Register for the next transfer.
520
*/
521
- if (irqstatus & AT91_TWI_RXRDY) {
522
- /*
523
- * Read all available bytes at once by polling RXRDY usable w/
524
- * and w/o FIFO. With FIFO enabled we could also read RXFL and
525
- * avoid polling RXRDY.
526
- */
527
- do {
528
- at91_twi_read_next_byte(dev);
529
- } while (at91_twi_read(dev, AT91_TWI_SR) & AT91_TWI_RXRDY);
530
- }
+ if (irqstatus & AT91_TWI_RXRDY)
+ at91_twi_read_next_byte(dev);
531
532
/*
533
* When a NACK condition is detected, the I2C controller sets the NACK,
0 commit comments