projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0cf8d32
)
spi: stm32-qspi: Remove SR_BUSY bit check before sending command
author
Patrice Chotard
<patrice.chotard@foss.st.com>
Wed, 11 May 2022 07:46:44 +0000
(09:46 +0200)
committer
Mark Brown
<broonie@kernel.org>
Wed, 11 May 2022 16:40:10 +0000
(17:40 +0100)
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>
drivers/spi/spi-stm32-qspi.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-stm32-qspi.c
b/drivers/spi/spi-stm32-qspi.c
index
f2b67c8
..
1948a00
100644
(file)
--- 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);