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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:22:50 +0000 (10:22 +0200)
commit523f6fe7b0340c904d495cbbb8a9d27c0d06b57c
treee49ec2a39b6107aa4fabc921da4625059e2e694d
parenteb57de933e4ad0b5c1dee45b40f452c33cd6c83c
spi: rockchip: Stop spi slave dma receiver when cs inactive

[ Upstream commit 869f2c94db92f0f1d6acd0dff1c1ebb8160f5e29 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-rockchip.c