Skip to content
Commit 9b14ac5c authored by Eugeniy Paltsev's avatar Eugeniy Paltsev Committed by Jagan Teki
Browse files

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: c6b4f031

 ("DW SPI: fix tx data loss on FIFO flush")

Signed-off-by: default avatarEugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Reviewed-by: default avatarJagan Teki <jagan@openedev.com>
parent 4d95ed39
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment