diff options
| author | Felipe Balbi <balbi@ti.com> | 2015-02-13 15:44:17 -0500 |
|---|---|---|
| committer | Felipe Balbi <balbi@ti.com> | 2015-04-07 13:58:35 -0400 |
| commit | b8fb6f79f76f478acbbffccc966daa878f172a0a (patch) | |
| tree | 922f0d0cced67dd05f7b74f3daf31211bfc446c1 /drivers | |
| parent | ea16328f80ca8d74434352157f37ef60e2f55ce2 (diff) | |
usb: host: uhci: 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>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/usb/host/uhci-hub.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/host/uhci-hub.c b/drivers/usb/host/uhci-hub.c index 19ba5eafb31e..7b3d1afcc14a 100644 --- a/drivers/usb/host/uhci-hub.c +++ b/drivers/usb/host/uhci-hub.c | |||
| @@ -166,7 +166,7 @@ static void uhci_check_ports(struct uhci_hcd *uhci) | |||
| 166 | /* Port received a wakeup request */ | 166 | /* Port received a wakeup request */ |
| 167 | set_bit(port, &uhci->resuming_ports); | 167 | set_bit(port, &uhci->resuming_ports); |
| 168 | uhci->ports_timeout = jiffies + | 168 | uhci->ports_timeout = jiffies + |
| 169 | msecs_to_jiffies(25); | 169 | msecs_to_jiffies(USB_RESUME_TIMEOUT); |
| 170 | usb_hcd_start_port_resume( | 170 | usb_hcd_start_port_resume( |
| 171 | &uhci_to_hcd(uhci)->self, port); | 171 | &uhci_to_hcd(uhci)->self, port); |
| 172 | 172 | ||
| @@ -338,7 +338,8 @@ static int uhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, | |||
| 338 | uhci_finish_suspend(uhci, port, port_addr); | 338 | uhci_finish_suspend(uhci, port, port_addr); |
| 339 | 339 | ||
| 340 | /* USB v2.0 7.1.7.5 */ | 340 | /* USB v2.0 7.1.7.5 */ |
| 341 | uhci->ports_timeout = jiffies + msecs_to_jiffies(50); | 341 | uhci->ports_timeout = jiffies + |
| 342 | msecs_to_jiffies(USB_RESUME_TIMEOUT); | ||
| 342 | break; | 343 | break; |
| 343 | case USB_PORT_FEAT_POWER: | 344 | case USB_PORT_FEAT_POWER: |
| 344 | /* UHCI has no power switching */ | 345 | /* UHCI has no power switching */ |
