···792792 ehci->reset_done[i] == 0))793793 continue;794794795795- /* start 20 msec resume signaling from this port,796796- * and make hub_wq collect PORT_STAT_C_SUSPEND to797797- * stop that signaling. Use 5 ms extra for safety,798798- * like usb_port_resume() does.795795+ /* start USB_RESUME_TIMEOUT msec resume signaling from796796+ * this port, and make hub_wq collect797797+ * PORT_STAT_C_SUSPEND to stop that signaling.799798 */800800- ehci->reset_done[i] = jiffies + msecs_to_jiffies(25);799799+ ehci->reset_done[i] = jiffies +800800+ msecs_to_jiffies(USB_RESUME_TIMEOUT);801801 set_bit(i, &ehci->resuming_ports);802802 ehci_dbg (ehci, "port %d remote wakeup\n", i + 1);803803 usb_hcd_start_port_resume(&hcd->self, i);
+6-3
drivers/usb/host/ehci-hub.c
···471471 ehci_writel(ehci, temp, &ehci->regs->port_status [i]);472472 }473473474474- /* msleep for 20ms only if code is trying to resume port */474474+ /*475475+ * msleep for USB_RESUME_TIMEOUT ms only if code is trying to resume476476+ * port477477+ */475478 if (resume_needed) {476479 spin_unlock_irq(&ehci->lock);477477- msleep(20);480480+ msleep(USB_RESUME_TIMEOUT);478481 spin_lock_irq(&ehci->lock);479482 if (ehci->shutdown)480483 goto shutdown;···945942 temp &= ~PORT_WAKE_BITS;946943 ehci_writel(ehci, temp | PORT_RESUME, status_reg);947944 ehci->reset_done[wIndex] = jiffies948948- + msecs_to_jiffies(20);945945+ + msecs_to_jiffies(USB_RESUME_TIMEOUT);949946 set_bit(wIndex, &ehci->resuming_ports);950947 usb_hcd_start_port_resume(&hcd->self, wIndex);951948 break;