Re: [PATCH v2 1/3] iio: adc: twl6030-gpadc: use devm_add_action_or_reset() to disable IRQ

From: Jonathan Cameron

Date: Sun Nov 29 2026 - 14:18:52 EST


On Sun, 29 Nov 2026 15:03:25 +0800 (CST)
fuwh1120 <fuwh1120@xxxxxxx> wrote:

> Hi,
>
> At 2026-11-29 07:36:49, "Jonathan Cameron" <jic23@xxxxxxxxxx> wrote:
> >
> >This doesn't state anywhere what is being fixed.
> >I want to see details on the cause and impact of the bug.
> >
>
> I found this by code inspection. If probe fails after enabling the interrupt,
> it remains unmasked after the IRQ handler is released.
>
> If further conversions are triggered, this could cause unnecessary
> interrupts and CPU wakeups. But I haven't verified this.

Given the irq will be disabled anyway (by next devm call in unwind order
after this one) I suspect the impact is minimal but none the less it
does make sense to fix from a consistency point of view if nothing else.

Add a little more detail to the commit message for v2.
Put that it was code inspection under the ---

Thanks,

Jonathan


>
> Thanks,
> Wanhui