Re: [PATCH 1/3] iio: adc: ade9000: request interrupts after powering the device
Joshua Crofts <[email protected]>
| Newsgroups | org.kernel.vger.linux-iio,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 7 Aug 2026 11:56:41 +0300 Antoniu Miclaus <[email protected]> wrote: > The IRQ handlers do SPI register accesses, but the interrupts were > requested before the vdd regulator was enabled. An interrupt arriving > while the chip is unpowered runs a handler against a dead chip, causing > SPI errors or garbage reads. > > Request the interrupts after enabling the regulator. This keeps irq1 > registered before ade9000_reset(), which waits on it, and lets devm free > the interrupts before the regulator is disabled. > > Fixes: 81de7b4619fc ("iio: adc: add ade9000 support") > Signed-off-by: Antoniu Miclaus <[email protected]> > --- LGTM. Reviewed-by: Joshua Crofts <[email protected]> -- Kind regards, Joshua Crofts