Commit 855a40cd authored by Daniel Mack's avatar Daniel Mack Committed by Mark Brown

spi: cadence: Add SPI transfer delays

When processing an SPI transfer, honor the delay that might be passed
along with it.
Signed-off-by: default avatarDaniel Mack <daniel@zonque.org>
Link: https://lore.kernel.org/r/20201009100309.381279-1-daniel@zonque.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent ca4e2ac2
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment