Re: [PATCH] iio: accel: adxl367: resolve interrupt mapping before device setup
From: Joshua Crofts
Date: Mon Sep 07 2026 - 10:59:49 EST
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>
--
Kind regards,
Joshua Crofts