Re: [U-Boot] [PATCH] DW SPI: invert wait condition in dw_spi_xfer

2018-04-22 Thread Jagan Teki
On Thu, Apr 19, 2018 at 8:17 PM, Eugeniy Paltsev wrote: > While switching to readl_poll_timeout macros from custom code > the waiting condition was accidently inverted, so it was pure > luck that this code works at least in some conditions. > > Fix that by inverting exit condition for readl_poll_t

[U-Boot] [PATCH] DW SPI: invert wait condition in dw_spi_xfer

2018-04-19 Thread Eugeniy Paltsev
While switching to readl_poll_timeout macros from custom code the waiting condition was accidently inverted, so it was pure luck that this code works at least in some conditions. Fix that by inverting exit condition for readl_poll_timeout. Fixes: c6b4f031d9 ("DW SPI: fix tx data loss on FIFO flus