diff options
author | Tomeu Vizoso <tomeu.vizoso@collabora.com> | 2016-06-08 09:32:51 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-06-08 11:56:54 +0100 |
commit | 4dc0dd83603f05dc3ae152af33ecb15104c313f3 (patch) | |
tree | 24d8e90730913482250f53377163b30bd434d4bc | |
parent | 1a695a905c18548062509178b98bc91e67510864 (diff) |
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