All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Lizhe <sensor1010@163.com>
Cc: rafael@kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3] driver:core: no need to invert the return value of the call_driver_probe()
Date: Tue, 9 Jul 2024 16:24:31 +0200	[thread overview]
Message-ID: <2024070904-blob-unvarying-715f@gregkh> (raw)
In-Reply-To: <20240709141417.3349-1-sensor1010@163.com>

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@163.com>
> 
> 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-

  reply	other threads:[~2024-07-09 14:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-09 14:14 [PATCH v3] driver:core: no need to invert the return value of the call_driver_probe() Lizhe
2024-07-09 14:24 ` Greg KH [this message]
2024-07-10 12:50 ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2024070904-blob-unvarying-715f@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rafael@kernel.org \
    --cc=sensor1010@163.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.