spi: rockchip: handle zero length transfers without timing out
authorTobias Schramm <t.schramm@manjaro.org>
Fri, 27 Aug 2021 05:03:57 +0000 (07:03 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 3 Sep 2021 12:31:49 +0000 (13:31 +0100)
commit5457773ef99f25fcc4b238ac76b68e28273250f4
tree903ee2f7beaf6ba441daef5d9f9664d1f6ee53b1
parent26cfc0dbe43aae60dc03af27077775244f26c167
spi: rockchip: handle zero length transfers without timing out

Previously zero length transfers submitted to the Rokchip SPI driver would
time out in the SPI layer. This happens because the SPI peripheral does
not trigger a transfer completion interrupt for zero length transfers.

Fix that by completing zero length transfers immediately at start of
transfer.

Signed-off-by: Tobias Schramm <t.schramm@manjaro.org>
Link: https://lore.kernel.org/r/20210827050357.165409-1-t.schramm@manjaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-rockchip.c