Re: [PATCH v1 1/1] idma64: Don't try to serve interrupts when device is powered off
From: Andy Shevchenko
Date: Thu Mar 21 2024 - 08:02:47 EST
On Thu, Mar 21, 2024 at 12:49:20PM +0100, Heiner Kallweit wrote:
> On 20.03.2024 17:32, Andy Shevchenko wrote:
..
> > dev_vdbg(idma64->dma.dev, "%s: status=%#x\n", __func__, status);
> >
> > + /* Since IRQ may be shared, check if DMA controller is powered on */
> > + if (status == GENMASK(31, 0))
> > + return IRQ_NONE;
> > +
> > /* Check if we have any interrupt from the DMA controller */
> > if (!status)
> > return IRQ_NONE;
> > -- 2.43.0.rc1.1.gbec44491f096
>
> Tested-by: Heiner Kallweit <hkallweit1@xxxxxxxxx>
Thank you! I think I'll move the test to be before the debug message as it
makes no sense to print when we have powered off device.
Nevertheless, I'll take your tag if no objections for v2.
--
With Best Regards,
Andy Shevchenko