]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spi: sh_qspi: Drop SPBDCR wait
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Tue, 10 Apr 2018 14:54:38 +0000 (16:54 +0200)
committerMarek Vasut <marex@denx.de>
Wed, 11 Apr 2018 21:19:51 +0000 (23:19 +0200)
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>
drivers/spi/sh_qspi.c

index fc0e1fc336f0c24e4a17c84953cd25a0c90db19e..8eaa6744ccf3cb9be57370a49c372ace57520f32 100644 (file)
@@ -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");