Re: [PATCH] iio: light: tsl2591: return actual error from probe IRQ failure
From: Joshua Crofts
Date: Sun May 17 2026 - 14:25:52 EST
On Sun, 17 May 2026 at 20:15, Stepan Ionichev <sozdayvek@xxxxxxxxx> wrote:
>
> When devm_request_threaded_irq() fails, probe calls dev_err_probe()
> but then returns -EINVAL, dropping the real error code and breaking
> the deferred-probe flow that dev_err_probe() handles for -EPROBE_DEFER.
>
> Return the value from dev_err_probe() instead.
>
> Fixes: 2335f0d7c790 ("iio: light: Added AMS tsl2591 driver implementation")
> Signed-off-by: Stepan Ionichev <sozdayvek@xxxxxxxxx>
Fine by me. Maybe this could also get marked for stable? (Up to Jonathan
of course).
Reviewed-by: Joshua Crofts <joshua.crofts1@xxxxxxxxx>
--
Kind regards
CJD