Revert "spi: s3c64xx: fix timeout counters in flush_fifo"

This reverts commit 96ea2c9c8f.
This commit is contained in:
Ksawlii 2024-11-24 00:23:05 +01:00
parent 5bee223fee
commit 1bdbb38edc

View file

@ -285,7 +285,7 @@ static void flush_fifo(struct s3c64xx_spi_driver_data *sdd)
loops = msecs_to_loops(1);
do {
val = readl(regs + S3C64XX_SPI_STATUS);
} while (TX_FIFO_LVL(val, sdd) && --loops);
} while (TX_FIFO_LVL(val, sdd) && loops--);
if (loops == 0)
dev_warn(&sdd->pdev->dev, "Timed out flushing TX FIFO\n");
@ -298,7 +298,7 @@ static void flush_fifo(struct s3c64xx_spi_driver_data *sdd)
readl(regs + S3C64XX_SPI_RX_DATA);
else
break;
} while (--loops);
} while (loops--);
if (loops == 0)
dev_warn(&sdd->pdev->dev, "Timed out flushing RX FIFO\n");