Skip to content

Commit f5c6a27

Browse files
outman119broonie
authored andcommitted
spi: axiado: replace usleep_range() with udelay() in IRQ path
ax_spi_fill_tx_fifo() can be called from ax_spi_irq() which is a hard irq handler. Replace usleep_range(10, 10) with udelay(10) in atomic context. Fixes: e75a6b0 ("spi: axiado: Add driver for Axiado SPI DB controller") Signed-off-by: Felix Gu <ustc.gu@gmail.com> Link: https://patch.msgid.link/20260428-axiado-v1-1-cd767500af72@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 7643978 commit f5c6a27

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/spi/spi-axiado.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ static void ax_spi_fill_tx_fifo(struct ax_spi *xspi)
201201
* then spi control did't work thoroughly, add one byte delay
202202
*/
203203
if (ax_spi_read(xspi, AX_SPI_IVR) & AX_SPI_IVR_TFOV)
204-
usleep_range(10, 10);
204+
udelay(10);
205205
if (xspi->tx_buf)
206206
ax_spi_write_b(xspi, AX_SPI_TXFIFO, *xspi->tx_buf++);
207207
else

0 commit comments

Comments
 (0)