Skip to content

Commit ae16cc1

Browse files
Patrice Chotardbroonie
authored andcommitted
spi: stm32-qspi: Remove SR_BUSY bit check before sending command
Waiting for SR_BUSY bit when receiving a new command is not needed. SR_BUSY bit is already managed in the previous command treatment. Signed-off-by: Patrice Chotard <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 0cf8d32 commit ae16cc1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/spi/spi-stm32-qspi.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,10 +369,6 @@ static int stm32_qspi_send(struct spi_mem *mem, const struct spi_mem_op *op)
369369
op->dummy.buswidth, op->data.buswidth,
370370
op->addr.val, op->data.nbytes);
371371

372-
err = stm32_qspi_wait_nobusy(qspi);
373-
if (err)
374-
goto abort;
375-
376372
cr = readl_relaxed(qspi->io_base + QSPI_CR);
377373
cr &= ~CR_PRESC_MASK & ~CR_FSEL;
378374
cr |= FIELD_PREP(CR_PRESC_MASK, flash->presc);

0 commit comments

Comments
 (0)