diff options
author | Felipe Balbi | 2016-06-09 16:24:08 +0300 |
---|---|---|
committer | Felipe Balbi | 2016-06-21 10:38:42 +0300 |
commit | d807bdd02845d53047346a4ba6d8934597fba6d6 (patch) | |
tree | 3f60c8607a8a1af39379067483a97b59eee64a09 /drivers/usb/dwc3 | |
parent | 5f82279a0c76825bfc6f5fa213ff82c932161462 (diff) |
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 <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r-- | drivers/usb/dwc3/gadget.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index c889ee371cb6..b3b5df6dcbd2 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", |