mirror of
https://github.com/torvalds/linux.git
synced 2024-11-13 07:31:45 +00:00
9f2a3933be
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> |
||
---|---|---|
.. | ||
anchors.rst | ||
bulk-streams.rst | ||
callbacks.rst | ||
dma.rst | ||
dwc3.rst | ||
error-codes.rst | ||
gadget.rst | ||
hotplug.rst | ||
index.rst | ||
persist.rst | ||
power-management.rst | ||
typec_bus.rst | ||
typec.rst | ||
URB.rst | ||
usb3-debug-port.rst | ||
usb.rst | ||
writing_musb_glue_layer.rst | ||
writing_usb_driver.rst |