diff options
author | Patrice Chotard <patrice.chotard@foss.st.com> | 2022-05-11 10:46:44 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-05-11 19:40:10 +0300 |
commit | ae16cc18f37bcdea7d4ef57a5e526a60b09a1506 (patch) | |
tree | c7c05f8e305784f83369d6c73fef29b8b87c06fb /drivers/spi | |
parent | 0cf8d32600cf5660ee45d421f1b6e3a129ca58b6 (diff) | |
download | linux-ae16cc18f37bcdea7d4ef57a5e526a60b09a1506.tar.xz |
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>
Link: https://lore.kernel.org/r/20220511074644.558874-4-patrice.chotard@foss.st.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-stm32-qspi.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/spi/spi-stm32-qspi.c b/drivers/spi/spi-stm32-qspi.c index f2b67c8842d4..1948a0090ae4 100644 --- a/drivers/spi/spi-stm32-qspi.c +++ b/drivers/spi/spi-stm32-qspi.c @@ -369,10 +369,6 @@ static int stm32_qspi_send(struct spi_mem *mem, const struct spi_mem_op *op) op->dummy.buswidth, op->data.buswidth, op->addr.val, op->data.nbytes); - err = stm32_qspi_wait_nobusy(qspi); - if (err) - goto abort; - cr = readl_relaxed(qspi->io_base + QSPI_CR); cr &= ~CR_PRESC_MASK & ~CR_FSEL; cr |= FIELD_PREP(CR_PRESC_MASK, flash->presc); |