Revert "usb: core: hub: add quirk for hub with broken autosuspend function"

This reverts commit ee79d6800b.

The upstream commit 991df39499 ("media: uvcvideo: Disable
autosuspend for Insta360 Link") has introduced a new quirk
"UVC_QUIRK_DISABLE_AUTOSUSPEND" for usb cameras to disable
autosuspend, so let's remove legacy autosuspend quirks.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I6e0290a02d642ffc88e4a5940da9f42f5954ecc4
This commit is contained in:
William Wu
2025-04-08 10:22:50 +08:00
committed by Tao Huang
parent b6fb24f3b0
commit 6ced740ee8
2 changed files with 1 additions and 5 deletions

View File

@@ -1850,8 +1850,7 @@ static int hub_probe(struct usb_interface *intf, const struct usb_device_id *id)
* bus_resume methods.
*/
if (hdev->parent) { /* normal device */
if (!(hdev->parent->quirks & USB_QUIRK_AUTO_SUSPEND))
usb_enable_autosuspend(hdev);
usb_enable_autosuspend(hdev);
} else { /* root hub */
const struct hc_driver *drv = bus_to_hcd(hdev->bus)->driver;

View File

@@ -72,7 +72,4 @@
/* device has endpoints that should be ignored */
#define USB_QUIRK_ENDPOINT_IGNORE BIT(15)
/* device can't support auto suspend function */
#define USB_QUIRK_AUTO_SUSPEND BIT(17)
#endif /* __LINUX_USB_QUIRKS_H */