spi: sun4i: fix FIFO limit
authorMichal Suchanek <hramrach@gmail.com>
Mon, 13 Jun 2016 17:46:49 +0000 (17:46 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 14 Jun 2016 09:05:08 +0000 (10:05 +0100)
commit6d9fe44bd73d567d04d3a68a2d2fa521ab9532f2
tree862f44d73573de039a5b35a2fce7f0a154530a43
parent1a695a905c18548062509178b98bc91e67510864
spi: sun4i: fix FIFO limit

When testing SPI without DMA I noticed that filling the FIFO on the
spi controller causes timeout.

Always leave room for one byte in the FIFO.

Signed-off-by: Michal Suchanek <hramrach@gmail.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
drivers/spi/spi-sun4i.c