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

2023-12-19 Thread Jagan Teki
On Mon, Dec 18, 2023 at 11:01 PM Maxim Kiselev wrote: > > Hello Jagan, > > пн, 18 дек. 2023 г. в 14:28, Jagan Teki : > > > > On Tue, Oct 17, 2023 at 12:35 PM Maksim Kiselev > > wrote: > > > > > > If even one byte is lost due to Rx FIFO overflow then we will never > > > exit the read loop.

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

2023-12-18 Thread Maxim Kiselev
Hello Jagan, пн, 18 дек. 2023 г. в 14:28, Jagan Teki : > > On Tue, Oct 17, 2023 at 12:35 PM Maksim Kiselev 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. > > > >

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

2023-12-18 Thread Jagan Teki
On Tue, Oct 17, 2023 at 12:35 PM Maksim Kiselev 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

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

2023-10-17 Thread Maksim Kiselev
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 ---