diff options
author | Marek Vasut | 2018-04-10 16:54:38 +0200 |
---|---|---|
committer | Marek Vasut | 2018-04-11 23:19:51 +0200 |
commit | 118226495249268a35e604b2e6309801699f6224 (patch) | |
tree | 0a6b5984172703dd49a6f042578f39e6d5c0893f /drivers/spi/sh_qspi.c | |
parent | 0e6fa20b14ed27ef667ddb31c8e7c620417ee4f5 (diff) |
spi: sh_qspi: Drop SPBDCR wait
Waiting for SPBDCR == 1 is not required and is covered by the
subsequent wait for SPSR_SPRFF, so drop this.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Diffstat (limited to 'drivers/spi/sh_qspi.c')
-rw-r--r-- | drivers/spi/sh_qspi.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/spi/sh_qspi.c b/drivers/spi/sh_qspi.c index fc0e1fc336f..8eaa6744ccf 100644 --- a/drivers/spi/sh_qspi.c +++ b/drivers/spi/sh_qspi.c @@ -246,14 +246,6 @@ int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout, writeb(*tdata, (u8 *)(&ss->regs->spdr)); - while ((readw(&ss->regs->spbdcr) != SPBDCR_RXBC0)) { - if (ctrlc()) { - puts("abort\n"); - return 1; - } - udelay(1); - } - while (!(readb(&ss->regs->spsr) & SPSR_SPRFF)) { if (ctrlc()) { puts("abort\n"); |