Re: [PATCH v2 1/4] software node: return -ENXIO when referenced swnode is not registered yet
From: Bartosz Golaszewski
Date: Tue Apr 07 2026 - 09:31:30 EST
On Tue, Apr 7, 2026 at 12:57 PM Bartosz Golaszewski <brgl@xxxxxxxxxx> wrote:
>
> > -EPROBE_DEFER should have been called -ENOTREADY from the beginning and
> > then we would not have this argument. Or, even better, we should have
> > used -EAGAIN. But it is just a name, semantics does not really change.
> > We want to signal that something is not ready and the operation needs be
> > repeated. Currently we contorting ourselves by using yet another error
> > code that everyone will either convert to -EPORBE_DEFER or will handle
> > like -EAGAIN.
> >
>
> Andy et al: what is your take on this?
>
> Bart
Andy acked the v3 patch and Sakari pointed out an example of v4l2
where a similar approach was taken, so I sent a v4 with issues pointed
out in v3 fixed.
Bart