diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-04-10 07:45:27 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-04-10 07:45:27 -0400 |
commit | c8d1bc12c7986c166bd3504213d9df2bc11ad7d6 (patch) | |
tree | 9882ae7d9eb103c73029050d62232cd83328be52 /drivers/usb/host/uhci-hub.c | |
parent | b7a4abb67416aa07cd65446dd39e64525ccfe8e5 (diff) | |
parent | bbc78c07a51f6fd29c227b1220a9016e585358ba (diff) |
Merge tag 'usb-for-v4.1-part2' of git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb into usb-testing
Felipe writes:
usb: generic resume timeout for v4.1
This part 2 pull request contains only the patches
which make sure everybody on linux uses the same
resume timeout value.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/host/uhci-hub.c')
-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 a7cc0221e003..ece9e37e89fe 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 */ |