From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Rajat Jain <rajatja@google.com>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>,
"Bjorn Helgaas" <bhelgaas@google.com>,
"Alan Stern" <stern@rowland.harvard.edu>,
linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org,
linux-usb@vger.kernel.org, helgaas@kernel.org,
"Oliver Neukum" <oneukum@suse.com>,
"David Laight" <David.Laight@aculab.com>,
"Krzysztof Wilczyński" <kw@linux.com>,
rajatxjain@gmail.com, jsbarnes@google.com, dtor@google.com
Subject: Re: [PATCH v4 1/2] driver core: Move the "removable" attribute from USB to core
Date: Fri, 21 May 2021 22:10:15 +0200 [thread overview]
Message-ID: <YKgTp00l1pRI4DTd@kroah.com> (raw)
In-Reply-To: <20210513232701.411773-1-rajatja@google.com>
On Thu, May 13, 2021 at 04:27:00PM -0700, Rajat Jain wrote:
> Move the "removable" attribute from USB to core in order to allow it to be
> supported by other subsystem / buses. Individual buses that want to support
> this attribute can populate the removable property of the device while
> enumerating it with the 3 possible values -
> - "unknown"
> - "fixed"
> - "removable"
> Leaving the field unchanged (i.e. "not supported") would mean that the
> attribute would not show up in sysfs for that device. The UAPI (location,
> symantics etc) for the attribute remains unchanged.
>
> Signed-off-by: Rajat Jain <rajatja@google.com>
> ---
> v4: - instead of devicce_type->supports_removable, add 1 more value in
> device_removable_enum
> - documentation update.
> - Remove "Acked-by" and "Reviewed-by" tags from previous versions.
> v3: - Minor commit log / comments updated.
> - use sysfs_emit()
> - Rename local variable name (state -> loc)
> - change supports_removable flag from bool to bitfield.
> v2: Add documentation
This looks good to me, I have no further objection to it at all, nice
cleanups.
I can take this in my driver-core tree, so that other busses can use it
(and can create a tag to pull from if needed), or I can also take the
PCI patch (patch 2/2 here), if Bjorn gives his reviewed-by: for it.
Are there other busses besides PCI that you want to enable this soon
(i.e. before 5.14-rc1)?
thanks,
greg k-h
next prev parent reply other threads:[~2021-05-21 20:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-13 23:27 [PATCH v4 1/2] driver core: Move the "removable" attribute from USB to core Rajat Jain
2021-05-13 23:27 ` [PATCH v4 2/2] PCI: Add sysfs "removable" attribute Rajat Jain
2021-05-21 20:57 ` Bjorn Helgaas
2021-05-21 20:10 ` Greg Kroah-Hartman [this message]
2021-05-21 20:54 ` [PATCH v4 1/2] driver core: Move the "removable" attribute from USB to core Bjorn Helgaas
2021-05-24 17:25 ` Rajat Jain
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=YKgTp00l1pRI4DTd@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=David.Laight@aculab.com \
--cc=bhelgaas@google.com \
--cc=dtor@google.com \
--cc=helgaas@kernel.org \
--cc=jsbarnes@google.com \
--cc=kw@linux.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=oneukum@suse.com \
--cc=rafael@kernel.org \
--cc=rajatja@google.com \
--cc=rajatxjain@gmail.com \
--cc=stern@rowland.harvard.edu \
/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