[PATCH v4 1/7] i2c: bcm2835: Fix hang for writing messages larger than 16 bytes

2016-10-03 Thread Noralf Trønnes
Writing messages larger than the FIFO size results in a hang, rendering the machine unusable. This is because the RXD status flag is set on the first interrupt which results in bcm2835_drain_rxfifo() stealing bytes from the buffer. The controller continues to trigger interrupts waiting for the

[PATCH v4 1/7] i2c: bcm2835: Fix hang for writing messages larger than 16 bytes

2016-10-03 Thread Noralf Trønnes
Writing messages larger than the FIFO size results in a hang, rendering the machine unusable. This is because the RXD status flag is set on the first interrupt which results in bcm2835_drain_rxfifo() stealing bytes from the buffer. The controller continues to trigger interrupts waiting for the