patch "xhci: use default USB_RESUME_TIMEOUT when resuming ports." added to usb-linus
Subsystems (3)
This is a note to let you know that I've just added the patch titled
xhci: use default USB_RESUME_TIMEOUT when resuming ports.
to my usb git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
in the usb-linus branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.
If you have any questions about this process, please let me know.
Quoted 1 line
From
7d3b016a6f5a0fa610dfd02b05654c08fa4ae514Mon Sep 17 00:00:00 2001
From: Mathias Nyman <[email protected]>
Date: Thu, 20 Oct 2016 18:09:20 +0300
Subject: xhci: use default USB_RESUME_TIMEOUT when resuming ports.
USB2 host inititated resume, and system suspend bus resume need to use the same USB_RESUME_TIMEOUT as elsewhere.
This resolves a device disconnect issue at system resume seen on Intel Braswell and Apollolake, but is in no way limited to those platforms.
--- drivers/usb/host/xhci-hub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/usb/host/xhci-hub.c +2 -2
@@ -1166,7 +1166,7 @@ int xhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,xhci_set_link_state (xhci, port_array, wIndex,XDEV_RESUME );spin_unlock_irqrestore (&xhci->lock, flags); -msleep (20 ); +msleep (USB_RESUME_TIMEOUT );spin_lock_irqsave (&xhci->lock, flags);xhci_set_link_state (xhci, port_array, wIndex,XDEV_U0 );
@@ -1447,7 +1447,7 @@ int xhci_bus_resume(struct usb_hcd *hcd)if (need_usb2_u3_exit) {spin_unlock_irqrestore (&xhci->lock, flags); -msleep (20 ); +msleep (USB_RESUME_TIMEOUT );spin_lock_irqsave (&xhci->lock, flags); }
Signature · 1 line
2.10.0