Merge "usb: host: xhci: Replace msleep with usleep_range"

This commit is contained in:
Linux Build Service Account 2016-11-10 15:14:30 -08:00 committed by Gerrit - the friendly Code Review server
commit d981af487e

View file

@ -1165,7 +1165,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);
usleep_range(21000, 21500);
spin_lock_irqsave(&xhci->lock, flags);
xhci_set_link_state(xhci, port_array, wIndex,
XDEV_U0);
@ -1409,7 +1409,7 @@ int xhci_bus_resume(struct usb_hcd *hcd)
if (need_usb2_u3_exit) {
spin_unlock_irqrestore(&xhci->lock, flags);
msleep(20);
usleep_range(21000, 21500);
spin_lock_irqsave(&xhci->lock, flags);
}