]> asedeno.scripts.mit.edu Git - linux.git/commit
spi: fsl-espi: fix and improve reading from RX FIFO
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 27 Oct 2016 19:27:35 +0000 (21:27 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 28 Oct 2016 18:39:47 +0000 (19:39 +0100)
commitf05689a662d47896da742f5338eab183ed692c1c
tree814c068ff1561379da6d836f51f5146e9f6164d2
parente508cea45bc31de87b35180a9ba5ef9572ffde3f
spi: fsl-espi: fix and improve reading from RX FIFO

Currently the driver polls in the ISR for enough bytes in the RX FIFO.
An ISR should never do this.
Change it to read as much as possible whenever the ISR is called.
This also allows to significantly simplify the code.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-espi.c