Re: [PATCH v2 2/4] gpio: swnode: defer probe on references to unregistered software nodes

Bartosz Golaszewski
2026-04-03T13:44:25Z

On Thu, Apr 2, 2026 at 11:04 PM Dmitry Torokhov
<dmitry.torokhov@gmail.com> 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