Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2839f5bc authored by Sarah Sharp's avatar Sarah Sharp
Browse files

USB: Turn on auto-suspend for USB 3.0 hubs.



Now that USB 3.0 hub remote wakeup on port status changes is enabled,
and USB 3.0 device remote wakeup is handled in the USB core properly,
let's turn on auto-suspend for all USB 3.0 hubs.

Signed-off-by: default avatarSarah Sharp <sarah.a.sharp@linux.intel.com>
parent 72937e1e
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -1315,13 +1315,7 @@ static int hub_probe(struct usb_interface *intf, const struct usb_device_id *id)
	desc = intf->cur_altsetting;
	hdev = interface_to_usbdev(intf);

	/* Hubs have proper suspend/resume support.  USB 3.0 device suspend is
	 * different from USB 2.0/1.1 device suspend, and unfortunately we
	 * don't support it yet.  So leave autosuspend disabled for USB 3.0
	 * external hubs for now.  Enable autosuspend for USB 3.0 roothubs,
	 * since that isn't a "real" hub.
	 */
	if (!hub_is_superspeed(hdev) || !hdev->parent)
	/* Hubs have proper suspend/resume support. */
	usb_enable_autosuspend(hdev);

	if (hdev->level == MAX_TOPO_LEVEL) {