aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorPatrice Chotard <patrice.chotard@foss.st.com>2022-05-12 09:17:38 +0200
committerPatrick Delaunay <patrick.delaunay@foss.st.com>2022-05-19 18:54:18 +0200
commitb6a469360a0dec01dbbf087c5184a59dda494569 (patch)
treef1a876f98f336b18fbc5d60bdbea1197b2561d5c /drivers
parenta6d7eeb66db720e77aba587fce6cc88a2003e8ab (diff)
downloadu-boot-b6a469360a0dec01dbbf087c5184a59dda494569.zip
u-boot-b6a469360a0dec01dbbf087c5184a59dda494569.tar.gz
u-boot-b6a469360a0dec01dbbf087c5184a59dda494569.tar.bz2
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 <patrice.chotard@foss.st.com> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/spi/stm32_qspi.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/spi/stm32_qspi.c b/drivers/spi/stm32_qspi.c
index 3c8faec..ceba413 100644
--- a/drivers/spi/stm32_qspi.c
+++ b/drivers/spi/stm32_qspi.c
@@ -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) {