Re: [PATCH 0/6] spi: tegra-qspi: Fix race condition causing NULL pointer dereference and spurious IRQ
From: Mark Brown
Date: Tue Jan 20 2026 - 11:52:58 EST
On Tue, Jan 20, 2026 at 08:49:23AM -0800, Breno Leitao wrote:
> On Tue, Jan 20, 2026 at 11:22:42AM +0000, Vishwaroop A wrote:
> - if (!tqspi->curr_xfer)
> + if (!tqspi->curr_xfer) {
> + /* Spurious interrupt - transfer not ready */
> + if (!(status & QSPI_RDY))
> + return IRQ_HANDLED;
> + /* Real interrupt, already handled by timeout path */
> return IRQ_NONE;
> + }
IRQ_NONE means that there was no interrupt flagged by the hardware, if
there was an interrupt you should return IRQ_HANDLED. You might confuse
genirq if you flag it spuriously.
Attachment:
signature.asc
Description: PGP signature