Re: [PATCH v3] driver:core: no need to invert the return value of the call_driver_probe()

From: Greg KH
Date: Tue Jul 09 2024 - 10:24:40 EST


On Tue, Jul 09, 2024 at 07:14:17AM -0700, Lizhe wrote:
> In the probe function (either drv->bus->probe() or drv->probe()),
> there is no return value of EPROBE_DEFER. the error return from probe
> should be -EPROBE_DEFER, hence no negation of call_driver_probe()'s
> return is needed, nor should there be an EPROBE_DEFER check in
> driver_probe_device()
>
> Signed-off-by: Lizhe <sensor1010@xxxxxxx>
>
> v3:
> Modify commit message and versions go below the ---
> v2:
> Delete the judgment with the return value of EPROBEDEFER
> from the _driver_probe.device()
> v1:
> Add the judgment with the return value of EPROBEDEFER
> from the _driver_probe.device()
> ---
> drivers/base/dd.c | 7 +------
> 1 file changed, 1 insertion(+), 6 deletions(-)

The documentation says to put the vN: stuff below the --- line, right?

And how did you find this issue?

thanks,

greg kh-