]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spi: stm32_qspi: Remove SR_BUSY bit check before sending command
authorPatrice Chotard <patrice.chotard@foss.st.com>
Thu, 12 May 2022 07:17:38 +0000 (09:17 +0200)
committerPatrick Delaunay <patrick.delaunay@foss.st.com>
Thu, 19 May 2022 16:54:18 +0000 (18:54 +0200)
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 <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
drivers/spi/stm32_qspi.c

index 3c8faecb54abe9d8040fb100f312a8c7488321bf..ceba413727e925b5e47eea91f799d20b38ae80b3 100644 (file)
@@ -255,10 +255,6 @@ static int stm32_qspi_exec_op(struct spi_slave *slave,
                op->dummy.buswidth, op->data.buswidth,
                op->addr.val, op->data.nbytes);
 
-       ret = _stm32_qspi_wait_for_not_busy(priv);
-       if (ret)
-               return ret;
-
        addr_max = op->addr.val + op->data.nbytes + 1;
 
        if (op->data.dir == SPI_MEM_DATA_IN && op->data.nbytes) {