[PATCH v2] spi: dw: add check for Rx FIFO overflow

Jagan Teki jagan at amarulasolutions.com
Mon Jan 29 12:48:58 CET 2024


On Thu, Dec 21, 2023 at 3:43 PM Maksim Kiselev <bigunclemax at gmail.com> wrote:
>
> 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 at gmail.com>
> ---

Applied to u-boot-spi/master


More information about the U-Boot mailing list