Commit 0e16025c authored by Jon Lin's avatar Jon Lin Committed by Greg Kroah-Hartman
Browse files

spi: rockchip: Fix error in SPI slave pio read



[ Upstream commit 4294e4ac ]

The RXFLR is possible larger than rx_left in Rockchip SPI, fix it.

Fixes: 01b59ce5 ("spi: rockchip: use irq rather than polling")
Signed-off-by: default avatarJon Lin <jon.lin@rock-chips.com>
Tested-by: default avatarEmil Renner Berthing <kernel@esmil.dk>
Reviewed-by: default avatarHeiko Stuebner <heiko@sntech.de>
Reviewed-by: default avatarEmil Renner Berthing <kernel@esmil.dk>
Link: https://lore.kernel.org/r/20200723004356.6390-3-jon.lin@rock-chips.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 7ca8cc7b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment