Re: [PATCH v2 2/4] gpio: swnode: defer probe on references to unregistered software nodes
From: Bartosz Golaszewski
Date: Fri Apr 03 2026 - 09:45:05 EST
On Thu, Apr 2, 2026 at 11:04 PM Dmitry Torokhov
<dmitry.torokhov@xxxxxxxxx> wrote:
>
> You need to change that to
>
> if (ret == 0 || ret == -ENXIO)
> break;
>
> because if we get -ENXIO that means the GPIO must be there (the property
> exists) but not ready yet and we do not want to fall back to another
> suffix.
>
I'm wondering if we should make this check even stricter and only
continue on -ENOENT - which means: there is no such property - and
bail out on other errors.
But that would be a separate change.
Bart