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

Commit c1cc7c02 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: core: Reduce resume signalling time for devices behind external hub"

parents e9b58393 9b04395c
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -3568,7 +3568,9 @@ int usb_port_resume(struct usb_device *udev, pm_message_t msg)
		/* drive resume for USB_RESUME_TIMEOUT msec */
		dev_dbg(&udev->dev, "usb %sresume\n",
				(PMSG_IS_AUTO(msg) ? "auto-" : ""));
		msleep(USB_RESUME_TIMEOUT);
		if (udev->parent != udev->bus->root_hub)
			usleep_range(USB_RESUME_TIMEOUT * 1000,
					(USB_RESUME_TIMEOUT + 1) * 1000);

		/* Virtual root hubs can trigger on GET_PORT_STATUS to
		 * stop resume signaling.  Then finish the resume
@@ -3577,7 +3579,7 @@ int usb_port_resume(struct usb_device *udev, pm_message_t msg)
		status = hub_port_status(hub, port1, &portstatus, &portchange);

		/* TRSMRCY = 10 msec */
		msleep(10);
		usleep_range(10000, 10500);
	}

 SuspendCleared:
+1 −1
Original line number Diff line number Diff line
@@ -309,7 +309,7 @@ void usb_put_intf(struct usb_interface *intf);
 * should cope with both LPJ calibration errors and devices not following every
 * detail of the USB Specification.
 */
#define USB_RESUME_TIMEOUT	40 /* ms */
#define USB_RESUME_TIMEOUT	20 /* ms */

/**
 * struct usb_interface_cache - long-term representation of a device interface