]> git.dujemihanovic.xyz Git - u-boot.git/commit
spi: sunxi: use XCH status to detect in-progress transfer
authorIcenowy Zheng <uwu@icenowy.me>
Tue, 28 Jun 2022 06:49:24 +0000 (14:49 +0800)
committerAndre Przywara <andre.przywara@arm.com>
Mon, 18 Jul 2022 10:27:58 +0000 (11:27 +0100)
commit56e497eba1bd13f93c50183d5c1cefff77f0933b
tree16f1f628dd0acd0208d16d1ace55069fac9a0b88
parent68655e6ce14c5eff8d0aad84dc40d7ca1d40c2e9
spi: sunxi: use XCH status to detect in-progress transfer

The current detection of RX FIFO depth seems to be not reliable, and
XCH will self-clear when a transfer is done.

Check XCH bit when polling for transfer finish.

Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
drivers/spi/spi-sunxi.c