spi: dw: invert wait condition in dw_spi_xfer
authorEugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Thu, 19 Apr 2018 14:47:41 +0000 (17:47 +0300)
committerJagan Teki <jagan@amarulasolutions.com>
Mon, 23 Apr 2018 05:46:41 +0000 (11:16 +0530)
commit9b14ac5cc2294ac3eaae92421abff27ed3e6caae
treed680cca99f37250de9ba19a33ecf2923e8bbce56
parent4d95ed39a19565a784419c8d9d67ad1b46ce3103
spi: dw: invert wait condition in dw_spi_xfer

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 flush")

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
drivers/spi/designware_spi.c