Skip to content

Commit fab0093

Browse files
committed
fixup! spi: dw: Wait for idle after TX
Relax a bit harder - transmission of the last bits may take a while. Signed-off-by: Phil Elwell <[email protected]>
1 parent 4d577c4 commit fab0093

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/spi/spi-dw-dma.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,9 @@ static int dw_spi_dma_wait_tx_done(struct dw_spi *dws,
305305
}
306306

307307
if (!xfer->rx_buf) {
308+
delay.value = dws->n_bytes * BITS_PER_BYTE;
308309
while (dw_readl(dws, DW_SPI_SR) & DW_SPI_SR_BUSY)
309-
cpu_relax();
310+
spi_delay_exec(&delay, xfer);
310311
}
311312

312313
return 0;

0 commit comments

Comments
 (0)