summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMaksim Kiselev <[email protected]>2023-12-21 13:13:30 +0300
committerJagan Teki <[email protected]>2024-01-29 17:18:12 +0530
commit26bb23b0bd303fae3412f36be6df3b7e87ed7cce (patch)
tree32b5fa01c650d6a3f30a92946507524be71c24d3 /include
parent526a865fe4fea59fb2638726c26e39557eb97fdd (diff)
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 <[email protected]> Reviewed-by: Jagan Teki <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions