Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9b602856 authored by Hemant Kumar's avatar Hemant Kumar
Browse files

usb: host: xhci: Replace msleep with usleep_range



Since usleep_range provides better accuracy in
comparison to msleep. This helps in reducing the
latency of host bus resume.

Change-Id: Id22104b9e5b63153731df9eb55759de9a86128c6
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent c4d9817a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1340,7 +1340,7 @@ int xhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
				xhci_set_link_state(xhci, ports[wIndex],
						    XDEV_RESUME);
				spin_unlock_irqrestore(&xhci->lock, flags);
				msleep(USB_RESUME_TIMEOUT);
				usleep_range(21000, 21500);
				spin_lock_irqsave(&xhci->lock, flags);
				xhci_set_link_state(xhci, ports[wIndex],
							XDEV_U0);