]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/3.19.7/usb-host-uhci-use-new-usb_resume_timeout.patch
4.9-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 3.19.7 / usb-host-uhci-use-new-usb_resume_timeout.patch
CommitLineData
6bc90f43
GKH
1From b8fb6f79f76f478acbbffccc966daa878f172a0a Mon Sep 17 00:00:00 2001
2From: Felipe Balbi <balbi@ti.com>
3Date: Fri, 13 Feb 2015 14:44:17 -0600
4Subject: usb: host: uhci: use new USB_RESUME_TIMEOUT
5
6From: Felipe Balbi <balbi@ti.com>
7
8commit b8fb6f79f76f478acbbffccc966daa878f172a0a upstream.
9
10Make sure we're using the new macro, so our
11resume signaling will always pass certification.
12
13Signed-off-by: Felipe Balbi <balbi@ti.com>
14Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
15
16---
17 drivers/usb/host/uhci-hub.c | 5 +++--
18 1 file changed, 3 insertions(+), 2 deletions(-)
19
20--- a/drivers/usb/host/uhci-hub.c
21+++ b/drivers/usb/host/uhci-hub.c
22@@ -165,7 +165,7 @@ static void uhci_check_ports(struct uhci
23 /* Port received a wakeup request */
24 set_bit(port, &uhci->resuming_ports);
25 uhci->ports_timeout = jiffies +
26- msecs_to_jiffies(25);
27+ msecs_to_jiffies(USB_RESUME_TIMEOUT);
28 usb_hcd_start_port_resume(
29 &uhci_to_hcd(uhci)->self, port);
30
31@@ -337,7 +337,8 @@ static int uhci_hub_control(struct usb_h
32 uhci_finish_suspend(uhci, port, port_addr);
33
34 /* USB v2.0 7.1.7.5 */
35- uhci->ports_timeout = jiffies + msecs_to_jiffies(50);
36+ uhci->ports_timeout = jiffies +
37+ msecs_to_jiffies(USB_RESUME_TIMEOUT);
38 break;
39 case USB_PORT_FEAT_POWER:
40 /* UHCI has no power switching */