Revert "spi: s3c64xx: fix timeout counters in flush_fifo"
This reverts commit 96ea2c9c8f
.
This commit is contained in:
parent
5bee223fee
commit
1bdbb38edc
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue