Skip to content

Commit

Permalink
spi: cadence: Add SPI transfer delays
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Daniel Mack authored and Mark Brown committed Oct 9, 2020
1 parent ca4e2ac commit 855a40c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/spi-cadence.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 855a40c

Please sign in to comment.