]> git.dujemihanovic.xyz Git - u-boot.git/commit
spi: dw: add check for Rx FIFO overflow
authorMaksim Kiselev <bigunclemax@gmail.com>
Thu, 21 Dec 2023 10:13:30 +0000 (13:13 +0300)
committerJagan Teki <jagan@edgeble.ai>
Mon, 29 Jan 2024 11:48:12 +0000 (17:18 +0530)
commit26bb23b0bd303fae3412f36be6df3b7e87ed7cce
tree32b5fa01c650d6a3f30a92946507524be71c24d3
parent526a865fe4fea59fb2638726c26e39557eb97fdd
spi: dw: add check for Rx FIFO overflow

If even one byte is lost due to Rx FIFO overflow then we will never
exit the read loop. Because the (priv->rx != priv->rx_end) condition will
be always true.

Let's check if Rx FIFO overflow occurred and exit the read loop
in this case.

Signed-off-by: Maksim Kiselev <bigunclemax@gmail.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/spi/designware_spi.c