From: Felipe Balbi Date: Thu, 9 Jun 2016 13:24:08 +0000 (+0300) Subject: UPSTREAM: usb: dwc3: gadget: remove udelay() from run_stop() X-Git-Tag: firefly_0821_release~1779 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=74069572234d0c7f1b3e8d92eb43660a54ed89c8;p=firefly-linux-kernel-4.4.55.git UPSTREAM: usb: dwc3: gadget: remove udelay() from run_stop() testing shows that udelay() is unnecessary as controller reaches Halted state almost instantenously as can be seen by our timeout variable never actually decrementing. Change-Id: I39aa43a4d26c4e5bf7c2c49569bb5ab0c662e718 Signed-off-by: Felipe Balbi Signed-off-by: Wu Liang feng (cherry picked from commit d807bdd02845d53047346a4ba6d8934597fba6d6) --- diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 6b3846b6e5ee..9ccf044ebb6f 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -1594,7 +1594,6 @@ static int dwc3_gadget_run_stop(struct dwc3 *dwc, int is_on, int suspend) timeout--; if (!timeout) return -ETIMEDOUT; - udelay(1); } while (1); dwc3_trace(trace_dwc3_gadget, "gadget %s data soft-%s",