Commit ac00ee01 authored by Felipe Balbi's avatar Felipe Balbi Committed by Jiri Slaby

usb: core: hub: use new USB_RESUME_TIMEOUT

commit bbc78c07 upstream.

Make sure we're using the new macro, so our
resume signaling will always pass certification.
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
parent 058b0641
...@@ -3284,10 +3284,10 @@ int usb_port_resume(struct usb_device *udev, pm_message_t msg) ...@@ -3284,10 +3284,10 @@ int usb_port_resume(struct usb_device *udev, pm_message_t msg)
dev_dbg(hub->intfdev, "can't resume port %d, status %d\n", dev_dbg(hub->intfdev, "can't resume port %d, status %d\n",
port1, status); port1, status);
} else { } else {
/* drive resume for at least 20 msec */ /* drive resume for USB_RESUME_TIMEOUT msec */
dev_dbg(&udev->dev, "usb %sresume\n", dev_dbg(&udev->dev, "usb %sresume\n",
(PMSG_IS_AUTO(msg) ? "auto-" : "")); (PMSG_IS_AUTO(msg) ? "auto-" : ""));
msleep(25); msleep(USB_RESUME_TIMEOUT);
/* Virtual root hubs can trigger on GET_PORT_STATUS to /* Virtual root hubs can trigger on GET_PORT_STATUS to
* stop resume signaling. Then finish the resume * stop resume signaling. Then finish the resume
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment