Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: e75a6b00ad79 ("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>

authored by

Felix Gu and committed by
Mark Brown
f5c6a272 76439787

+1 -1
+1 -1
drivers/spi/spi-axiado.c
··· 201 201 * then spi control did't work thoroughly, add one byte delay 202 202 */ 203 203 if (ax_spi_read(xspi, AX_SPI_IVR) & AX_SPI_IVR_TFOV) 204 - usleep_range(10, 10); 204 + udelay(10); 205 205 if (xspi->tx_buf) 206 206 ax_spi_write_b(xspi, AX_SPI_TXFIFO, *xspi->tx_buf++); 207 207 else