Files
linux/Documentation/ABI/testing
Ray Chi 430d57f53e usb: core: stop USB enumeration if too many retries
When a broken USB accessory connects to a USB host, usbcore might
keep doing enumeration retries. If the host has a watchdog mechanism,
the kernel panic will happen on the host.

This patch provides an attribute early_stop to limit the numbers of retries
for each port of a hub. If a port was marked with early_stop attribute,
unsuccessful connection attempts will fail quickly. In addition, if an
early_stop port has failed to initialize, it will ignore all future
connection events until early_stop attribute is clear.

Signed-off-by: Ray Chi <raychi@google.com>
Reviewed-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20221107072754.3336357-1-raychi@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-11-08 16:50:21 +01:00
..
2011-10-24 16:52:39 +02:00
2022-07-03 18:08:49 -07:00
2021-09-21 18:31:16 +02:00
2018-02-23 08:17:28 -07:00
2013-03-23 16:11:31 -07:00
2012-04-23 14:23:32 +03:00
2017-10-30 11:46:04 +01:00
2018-03-17 14:20:54 +01:00
2019-06-15 08:12:45 +02:00
2019-06-15 08:12:45 +02:00
2020-02-22 09:25:42 +08:00
2021-12-23 20:23:42 +01:00
2021-05-05 11:27:24 -07:00