From: Felipe Balbi Date: Thu, 9 Jun 2016 13:24:08 +0000 (+0300) Subject: usb: dwc3: gadget: remove udelay() from run_stop() X-Git-Tag: v4.14-rc1~2867^2~23^2~41 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d807bdd02845d53047346a4ba6d8934597fba6d6;p=platform%2Fkernel%2Flinux-rpi.git 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. Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index c889ee3..b3b5df6 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -1584,7 +1584,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",