diff options
| author | Andy Shevchenko <[email protected]> | 2024-03-21 12:04:21 +0000 |
|---|---|---|
| committer | Vinod Koul <[email protected]> | 2024-03-28 07:11:58 +0000 |
| commit | 9140ce47872bfd89fca888c2f992faa51d20c2bc (patch) | |
| tree | 1fd607231100d2421ec82c22905f1b1e4e1e752f | |
| parent | dmaengine: tegra186: Fix residual calculation (diff) | |
| download | kernel-9140ce47872bfd89fca888c2f992faa51d20c2bc.tar.gz kernel-9140ce47872bfd89fca888c2f992faa51d20c2bc.zip | |
idma64: Don't try to serve interrupts when device is powered off
When iDMA 64-bit device is powered off, the IRQ status register
is all 1:s. This is never happen in real case and signalling that
the device is simply powered off. Don't try to serve interrupts
that are not ours.
Fixes: 667dfed98615 ("dmaengine: add a driver for Intel integrated DMA 64-bit")
Reported-by: Heiner Kallweit <[email protected]>
Closes: https://lore.kernel.org/r/[email protected]
Tested-by: Heiner Kallweit <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
| -rw-r--r-- | drivers/dma/idma64.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/dma/idma64.c b/drivers/dma/idma64.c index 78a938969d7d..1398814d8fbb 100644 --- a/drivers/dma/idma64.c +++ b/drivers/dma/idma64.c @@ -171,6 +171,10 @@ static irqreturn_t idma64_irq(int irq, void *dev) u32 status_err; unsigned short i; + /* Since IRQ may be shared, check if DMA controller is powered on */ + if (status == GENMASK(31, 0)) + return IRQ_NONE; + dev_vdbg(idma64->dma.dev, "%s: status=%#x\n", __func__, status); /* Check if we have any interrupt from the DMA controller */ |
