spi: rockchip: Signal unfinished DMA transfers
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Wed, 8 Jun 2016 07:32:51 +0000 (09:32 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 8 Jun 2016 10:56:54 +0000 (11:56 +0100)
commit4dc0dd83603f05dc3ae152af33ecb15104c313f3
tree24d8e90730913482250f53377163b30bd434d4bc
parent1a695a905c18548062509178b98bc91e67510864
spi: rockchip: Signal unfinished DMA transfers

When using DMA, the transfer_one callback should return 1 because the
transfer hasn't finished yet.

A previous commit changed the function to return 0 when the DMA channels
were correctly prepared.

This manifested in Veyron boards with this message:

[ 1.983605] cros-ec-spi spi0.0: EC failed to respond in time

Fixes: ea9849113343 ("spi: rockchip: check return value of dmaengine_prep_slave_sg")
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
drivers/spi/spi-rockchip.c