Skip to content

Commit

Permalink
spi: spi-zynqmp-gqspi: Remove txfifo empty check during chip select/d…
Browse files Browse the repository at this point in the history
…eselect

For selecting/delecting a slave device, the driver only fills the
GENFIFO and no data is pushed on the TXFIFO, so removed the TXFIFO
EMPTY check.

Signed-off-by: Amit Kumar Mahapatra <amit.kumar-mahapatra@xilinx.com>
State: pending
  • Loading branch information
Amit Kumar Mahapatra authored and Michal Simek committed Jan 31, 2022
1 parent 3c7719d commit 8efe328
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/spi/spi-zynqmp-gqspi.c
Expand Up @@ -532,8 +532,7 @@ static void zynqmp_qspi_chipselect(struct spi_device *qspi, bool is_high)
do {
statusreg = zynqmp_gqspi_read(xqspi, GQSPI_ISR_OFST);

if ((statusreg & GQSPI_ISR_GENFIFOEMPTY_MASK) &&
(statusreg & GQSPI_ISR_TXEMPTY_MASK))
if (statusreg & GQSPI_ISR_GENFIFOEMPTY_MASK)
break;
cpu_relax();
} while (!time_after_eq(jiffies, timeout));
Expand Down

0 comments on commit 8efe328

Please sign in to comment.