Re: [PATCH] iio: accel: adxl367: resolve interrupt mapping before device setup

From: Jonathan Cameron

Date: Sun Sep 13 2026 - 18:08:47 EST


On Mon, 7 Sep 2026 16:56:37 +0200
Joshua Crofts <joshua.crofts1@xxxxxxxxx> wrote:

> On Mon, 7 Sep 2026 11:23:13 +0300
> Antoniu Miclaus <antoniu.miclaus@xxxxxxxxxx> wrote:
>
> > adxl367_set_int_map_reg() uses fwnode_irq_get_byname(), which can return
> > -EPROBE_DEFER. Running it after adxl367_setup() made every deferred probe
> > repeat the reset and power the device up needlessly.
> >
> > Move it ahead of the regulator enable and reset; the lookup only reads
> > firmware properties, so a deferral now returns before any hardware access.
> >
> > Signed-off-by: Antoniu Miclaus <antoniu.miclaus@xxxxxxxxxx>
> > ---
>
> Reviewed-by: Joshua Crofts <joshua.crofts1@xxxxxxxxx>
>

Sensible little optimization.
Applied,

J