All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Wenchao Hao <haowenchao@huawei.com>
Cc: "Rafael J . Wysocki" <rafael@kernel.org>,
	linux-kernel@vger.kernel.org, linfeilong@huawei.com,
	Wu Bo <wubo40@huawei.com>,
	Zhiqiang Liu <liuzhiqiang26@huawei.com>
Subject: Re: [PATCH] driver core: Make probe_type of driver accessible via sysfs
Date: Thu, 8 Jul 2021 17:53:59 +0200	[thread overview]
Message-ID: <YOcfl0DcPAy9wohy@kroah.com> (raw)
In-Reply-To: <d2a5f7f3-f68f-9420-b7ee-43102adf514f@huawei.com>


A: http://en.wikipedia.org/wiki/Top_post
Q: Were do I find info about this thing called top-posting?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

A: No.
Q: Should I include quotations after my reply?

http://daringfireball.net/2007/07/on_top

On Thu, Jul 08, 2021 at 08:49:31PM +0800, Wenchao Hao wrote:
> In some scenarios, you need to know whether the probe() callback in struct
> driver which triggered by device_add() or driver_register() is called
> synchronous or not, and modify this mode according to user requirements.

Who needs to know this?  What can you modify that will change anything?
What will you do to change it that will solve a problem that just fixing
the driver would not solve instead?

And what are these magic numbers that probe_type is?  If they are
exported to userspace, shouldn't they be a string instead?

> While kernel now does not open an interface for users to query or
> modify, so I add this interface.

You need to really document this in the changelog text, and in the abi
documentation, otherwise we have no idea what this for.

thanks,

greg k-h

      reply	other threads:[~2021-07-08 15:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-08 12:20 [PATCH] driver core: Make probe_type of driver accessible via sysfs Wenchao Hao
2021-07-08 12:28 ` Greg Kroah-Hartman
2021-07-08 12:49   ` Wenchao Hao
2021-07-08 15:53     ` Greg Kroah-Hartman [this message]

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=YOcfl0DcPAy9wohy@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=haowenchao@huawei.com \
    --cc=linfeilong@huawei.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=liuzhiqiang26@huawei.com \
    --cc=rafael@kernel.org \
    --cc=wubo40@huawei.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.