Skip to content

Commit 855a40c

Browse files
zonquebroonie
authored andcommitted
spi: cadence: Add SPI transfer delays
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>
1 parent ca4e2ac commit 855a40c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/spi/spi-cadence.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,8 @@ static int cdns_transfer_one(struct spi_master *master,
418418
xspi->rx_bytes = transfer->len;
419419

420420
cdns_spi_setup_transfer(spi, transfer);
421-
422421
cdns_spi_fill_tx_fifo(xspi);
422+
spi_transfer_delay_exec(transfer);
423423

424424
cdns_spi_write(xspi, CDNS_SPI_IER, CDNS_SPI_IXR_DEFAULT);
425425
return transfer->len;

0 commit comments

Comments
 (0)