Re: [PATCH] usb: core: stop USB enumeration if too many retries

From: Greg KH
Date: Tue Aug 30 2022 - 08:44:27 EST


On Fri, Aug 26, 2022 at 03:58:39PM +0800, Ray Chi wrote:
> If a broken accessory connected to a USB host, usbcore might
> keep doing enumeration retries and it will take a long time to
> cause system unstable.
>
> This patch provides a quirk to specific USB ports of the hub to
> stop USB enumeration if needed.

Where does it ever allow the port to handle new devices in the future if
the device is removed and then a new one is added back? Or is the port
just now dead for forever?

thanks,

greg k-h