Skip to content

Commit

Permalink
fixup! spi: dw: Wait for idle after TX
Browse files Browse the repository at this point in the history
Relax a bit harder - transmission of the last bits may take a while.

Signed-off-by: Phil Elwell <[email protected]>
  • Loading branch information
pelwell committed Feb 4, 2025
1 parent 4d577c4 commit fab0093
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/spi/spi-dw-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,9 @@ static int dw_spi_dma_wait_tx_done(struct dw_spi *dws,
}

if (!xfer->rx_buf) {
delay.value = dws->n_bytes * BITS_PER_BYTE;
while (dw_readl(dws, DW_SPI_SR) & DW_SPI_SR_BUSY)
cpu_relax();
spi_delay_exec(&delay, xfer);
}

return 0;
Expand Down

0 comments on commit fab0093

Please sign in to comment.