From 5993b9157fd049d06194083032771ffcf73da086 Mon Sep 17 00:00:00 2001 From: Christophe Kerello Date: Wed, 4 May 2022 11:28:15 +0200 Subject: [PATCH] fix(st-spi): 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. Change-Id: I736e8488d354cb165ae765022d864cca1dbdc9ee Signed-off-by: Christophe Kerello --- drivers/st/spi/stm32_qspi.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/st/spi/stm32_qspi.c b/drivers/st/spi/stm32_qspi.c index 28e071907..73aa9ac60 100644 --- a/drivers/st/spi/stm32_qspi.c +++ b/drivers/st/spi/stm32_qspi.c @@ -251,11 +251,6 @@ static int stm32_qspi_exec_op(const struct spi_mem_op *op) op->dummy.buswidth, op->data.buswidth, op->addr.val, op->data.nbytes); - ret = stm32_qspi_wait_for_not_busy(); - if (ret != 0) { - return ret; - } - addr_max = op->addr.val + op->data.nbytes + 1U; if ((op->data.dir == SPI_MEM_DATA_IN) && (op->data.nbytes != 0U)) {