commit | 6cf56185ec490ac547efb98faa06b2da933b72d1 | [log] [tgz] |
---|---|---|
author | Maksim Kiselev <bigunclemax@gmail.com> | Thu Dec 21 13:13:30 2023 +0300 |
committer | Jagan Teki <jagan@edgeble.ai> | Mon Jan 29 17:18:12 2024 +0530 |
tree | 32b5fa01c650d6a3f30a92946507524be71c24d3 | |
parent | f35157ce27c636ca166864b621a8edf8c5baa0a1 [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 <bigunclemax@gmail.com> Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>