Go to file
Michal Pecio 9f2a3933be USB: document some API requirements on disconnection
A call to usb_set_interface() crashes if the device is deallocated
concurrently, such as due to physical removal or a serious IO error.
It could also interfere with other drivers using the device if the
current driver is unbound before the call is finished.

Document the need to delay driver unbinding until this call returns,
which solves both issues.

Document the same regarding usb_clear_halt(), which is equally known
to be routinely called by drivers.

Explicitly mention finishing pending operations in the documentation
of the driver disconnect callback.

Signed-off-by: Michal Pecio <michal.pecio@gmail.com>
Link: https://lore.kernel.org/r/20240218092515.7635ff8c@foxbook
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-03-02 20:37:14 +01:00
Documentation USB: document some API requirements on disconnection 2024-03-02 20:37:14 +01:00
LICENSES
arch Merge v6.8-rc6 into usb-next 2024-02-26 06:53:50 +01:00
block
certs
crypto
drivers USB: document some API requirements on disconnection 2024-03-02 20:37:14 +01:00
fs bcachefs fixes for 6.8-rc6 2024-02-25 15:31:57 -08:00
include USB: typec: no opencoding FIELD_GET 2024-03-02 20:20:41 +01:00
init
io_uring
ipc
kernel
lib
mm cxl fixes for 6.8-rc6 2024-02-24 15:53:40 -08:00
net
rust
samples
scripts
security
sound
tools Merge v6.8-rc6 into usb-next 2024-02-26 06:53:50 +01:00
usr
virt
.clang-format
.cocciconfig
.editorconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
.rustfmt.toml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS USB fixes for 6.8-rc6 2024-02-25 10:41:57 -08:00
Makefile Linux 6.8-rc6 2024-02-25 15:46:06 -08:00
README

README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.