]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
spi: rockchip: Signal unfinished DMA transfers
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Wed, 8 Jun 2016 07:32:51 +0000 (09:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Aug 2016 10:54:47 +0000 (12:54 +0200)
commitef40d3f3739dbee0178624c5a4e6cda3a92af99a
tree0bd206ac18daeb72e802dde5ec3e91de6a8a78d6
parent7b1789f9d96d273729dde7e66cb2d80153d53788
spi: rockchip: Signal unfinished DMA transfers

commit 4dc0dd83603f05dc3ae152af33ecb15104c313f3 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/spi/spi-rockchip.c