From: Marek Vasut Date: Tue, 10 Apr 2018 17:15:38 +0200 Subject: [U-Boot] [PATCH 2/4] spi: sh_qspi: Drop SPBDCR wait In-Reply-To: <20180410151540.12103-1-marek.vasut+renesas@gmail.com> References: <20180410151540.12103-1-marek.vasut+renesas@gmail.com> Message-ID: <20180410151540.12103-2-marek.vasut+renesas@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 Cc: Nobuhiro Iwamatsu --- drivers/spi/sh_qspi.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/spi/sh_qspi.c b/drivers/spi/sh_qspi.c index fc0e1fc336..8eaa6744cc 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"); -- 2.16.2