From: Greg KH <gregkh@linuxfoundation.org>
To: Lizhe <sensor1010@163.com>
Cc: rafael@kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] driver:core: no need to invert the return value of the call_driver_probe()
Date: Mon, 8 Jul 2024 15:57:49 +0200 [thread overview]
Message-ID: <2024070829-zen-remake-6bfa@gregkh> (raw)
In-Reply-To: <20240708134028.3508-1-sensor1010@163.com>
On Mon, Jul 08, 2024 at 06:40:28AM -0700, Lizhe wrote:
> If drv->probe() or drv->bus->probe() returns EPROBE_DEFER,
> then there is no need to invert the sign. Similarly,
> if it returns -EPROBE_DEFER, no sign inversion is needed either
>
> In the probe function (either bus->probe() or drv->probe()),
> there is no return value of EPROBE_DEFER.
> 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()
Versions go below the --- line as the documentation says.
> Signed-off-by: Lizhe <sensor1010@163.com>
Full name?
thanks,
greg k-h
next prev parent reply other threads:[~2024-07-08 13:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-08 13:40 [PATCH v2] driver:core: no need to invert the return value of the call_driver_probe() Lizhe
2024-07-08 13:57 ` Greg KH [this message]
[not found] ` <38a8f6da.ae7e.19097de3e54.Coremail.sensor1010@163.com>
2024-07-09 14:26 ` 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=2024070829-zen-remake-6bfa@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox