projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f82279
)
usb: dwc3: gadget: remove udelay() from run_stop()
author
Felipe Balbi
<felipe.balbi@linux.intel.com>
Thu, 9 Jun 2016 13:24:08 +0000
(16:24 +0300)
committer
Felipe Balbi
<felipe.balbi@linux.intel.com>
Tue, 21 Jun 2016 07:38:42 +0000
(10:38 +0300)
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>
drivers/usb/dwc3/gadget.c
patch
|
blob
|
history
diff --git
a/drivers/usb/dwc3/gadget.c
b/drivers/usb/dwc3/gadget.c
index
c889ee3
..
b3b5df6
100644
(file)
--- 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",