Revert "usb: core: hub: add quirk for hub with broken autosuspend function"
This reverts commitee79d6800b. The upstream commit991df39499("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:
@@ -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;
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user