From: John Youn Date: Thu, 17 Dec 2015 19:18:13 +0000 (-0800) Subject: UPSTREAM: usb: dwc2: Reduce delay when forcing mode in reset X-Git-Tag: firefly_0821_release~897 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=891a8d11ace4b430957f5fcefdf66727ebea4843;p=firefly-linux-kernel-4.4.55.git UPSTREAM: usb: dwc2: Reduce delay when forcing mode in reset The delay for force mode is only 25ms according to the databook. Change-Id: Ib51c99f316a1efbf3ac2838ee2c248d6ad24c666 Signed-off-by: John Youn Signed-off-by: Felipe Balbi Signed-off-by: Huang, Tao (cherry picked from commit 97e463886b873f62bea2293e7edf81fdb884b84f) --- diff --git a/drivers/usb/dwc2/core.c b/drivers/usb/dwc2/core.c index 9dca83544b5e..39a0fa8a4c0a 100644 --- a/drivers/usb/dwc2/core.c +++ b/drivers/usb/dwc2/core.c @@ -602,7 +602,7 @@ static void dwc2_clear_force_mode(struct dwc2_hsotg *hsotg) * NOTE: This long sleep is _very_ important, otherwise the core will * not stay in host mode after a connector ID change! */ - usleep_range(150000, 160000); + msleep(25); } /*