]> git.baikalelectronics.ru Git - uboot.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)
commit18abe96ae00a293a5d797c99a33fab881e60bc5a
tree16f1f628dd0acd0208d16d1ace55069fac9a0b88
parent026c8fb9daf24c76bd81cad3ee35e1fbd435dbb1
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