Browse Source

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 <christophe.kerello@foss.st.com>
pull/1985/head
Christophe Kerello 3 years ago
committed by Yann Gautier
parent
commit
5993b9157f
  1. 5
      drivers/st/spi/stm32_qspi.c

5
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)) {

Loading…
Cancel
Save