projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca4e2ac
)
spi: cadence: Add SPI transfer delays
author
Daniel Mack
<daniel@zonque.org>
Fri, 9 Oct 2020 10:03:09 +0000
(12:03 +0200)
committer
Mark Brown
<broonie@kernel.org>
Fri, 9 Oct 2020 15:00:47 +0000
(16:00 +0100)
When processing an SPI transfer, honor the delay that might be passed
along with it.
Signed-off-by: Daniel Mack <daniel@zonque.org>
Link:
https://lore.kernel.org/r/20201009100309.381279-1-daniel@zonque.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-cadence.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-cadence.c
b/drivers/spi/spi-cadence.c
index
2b6b9c1
..
70467b9
100644
(file)
--- a/
drivers/spi/spi-cadence.c
+++ b/
drivers/spi/spi-cadence.c
@@
-418,8
+418,8
@@
static int cdns_transfer_one(struct spi_master *master,
xspi->rx_bytes = transfer->len;
cdns_spi_setup_transfer(spi, transfer);
-
cdns_spi_fill_tx_fifo(xspi);
+ spi_transfer_delay_exec(transfer);
cdns_spi_write(xspi, CDNS_SPI_IER, CDNS_SPI_IXR_DEFAULT);
return transfer->len;