瀏覽代碼

usb: core: hub: use new USB_RESUME_TIMEOUT

Make sure we're using the new macro, so our
resume signaling will always pass certification.

Cc: <stable@vger.kernel.org> # v3.10+
Signed-off-by: Felipe Balbi <balbi@ti.com>
Felipe Balbi 10 年之前
父節點
當前提交
bbc78c07a5
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      drivers/usb/core/hub.c

+ 2 - 2
drivers/usb/core/hub.c

@@ -3406,10 +3406,10 @@ int usb_port_resume(struct usb_device *udev, pm_message_t msg)
 	if (status) {
 	if (status) {
 		dev_dbg(&port_dev->dev, "can't resume, status %d\n", status);
 		dev_dbg(&port_dev->dev, "can't resume, status %d\n", 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