[PATCH] spi: sun4i: Allow transfers larger than FIFO size

2016-10-26 Thread Alexandru Gagniuc
SPI transfers were limited to one FIFO depth, which is 64 bytes. This was an artificial limitation, however, as the hardware can handle much larger bursts. To accommodate this, we enable the interrupt when the Rx FIFO is 3/4 full, and drain the FIFO within the interrupt handler. The 3/4 ratio was

[PATCH] spi: sun4i: Allow transfers larger than FIFO size

2016-10-26 Thread Alexandru Gagniuc
SPI transfers were limited to one FIFO depth, which is 64 bytes. This was an artificial limitation, however, as the hardware can handle much larger bursts. To accommodate this, we enable the interrupt when the Rx FIFO is 3/4 full, and drain the FIFO within the interrupt handler. The 3/4 ratio was