Skip to content
Commit 26bb23b0 authored by Maksim Kiselev's avatar Maksim Kiselev Committed by Jagan Teki
Browse files

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: default avatarMaksim Kiselev <bigunclemax@gmail.com>
Reviewed-by: default avatarJagan Teki <jagan@amarulasolutions.com>
parent 526a865f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment