aboutsummaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorMaksim Kiselev <bigunclemax@gmail.com>2023-12-21 13:13:30 +0300
committerJagan Teki <jagan@edgeble.ai>2024-01-29 17:18:12 +0530
commit26bb23b0bd303fae3412f36be6df3b7e87ed7cce (patch)
tree32b5fa01c650d6a3f30a92946507524be71c24d3 /drivers/mtd
parent526a865fe4fea59fb2638726c26e39557eb97fdd (diff)
downloadu-boot-26bb23b0bd303fae3412f36be6df3b7e87ed7cce.zip
u-boot-26bb23b0bd303fae3412f36be6df3b7e87ed7cce.tar.gz
u-boot-26bb23b0bd303fae3412f36be6df3b7e87ed7cce.tar.bz2
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>
Diffstat (limited to 'drivers/mtd')
0 files changed, 0 insertions, 0 deletions