spi: rockchip: Stop spi slave dma receiver when cs inactive
authorJon Lin <jon.lin@rock-chips.com>
Wed, 16 Feb 2022 01:40:25 +0000 (09:40 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 17 Feb 2022 17:15:07 +0000 (17:15 +0000)
commit869f2c94db92f0f1d6acd0dff1c1ebb8160f5e29
treee8e31b2331f144787ad4cdbb11e16459609ca6fa
parent80808768e41324d2e23de89972b5406c1020e6e4
spi: rockchip: Stop spi slave dma receiver when cs inactive

The spi which's version is higher than ver 2 will automatically
enable this feature.

If the length of master transmission is uncertain, the RK spi slave
is better to automatically stop after cs inactive instead of waiting
for xfer_completion forever.

Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
Link: https://lore.kernel.org/r/20220216014028.8123-4-jon.lin@rock-chips.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-rockchip.c