]> Git Repo - linux.git/commitdiff
spi: cadence: Add SPI transfer delays
authorDaniel Mack <[email protected]>
Fri, 9 Oct 2020 10:03:09 +0000 (12:03 +0200)
committerMark Brown <[email protected]>
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
drivers/spi/spi-cadence.c

index 2b6b9c1ad9d0e84630084ec917675b28e0709cae..70467b9d61baa3d13e3851e3abd25a36b2f5919e 100644 (file)
@@ -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;
This page took 0.058981 seconds and 4 git commands to generate.