diff options
| author | Maksim Kiselev <[email protected]> | 2023-12-21 13:13:30 +0300 |
|---|---|---|
| committer | Jagan Teki <[email protected]> | 2024-01-29 17:18:12 +0530 |
| commit | 26bb23b0bd303fae3412f36be6df3b7e87ed7cce (patch) | |
| tree | 32b5fa01c650d6a3f30a92946507524be71c24d3 /include/linux | |
| parent | 526a865fe4fea59fb2638726c26e39557eb97fdd (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/linux')
0 files changed, 0 insertions, 0 deletions
