kernel_optimize_test/drivers/usb/dwc3
Sebastian Andrzej Siewior 61d58242f6 usb: dwc3: gadget: replace mdelay with udelay in the busy loop
There are two spots where we wait until the HW finishes processing a
certain command. Initially we had a few problems and we used 500ms as a
limit to be on a the safe side. Paul Zimmerman mentioned this is little too
much. After a debugging session, we noticed that we hardly ever go over 20us
and didn't pass 30usec so far. Using mdelay() seems way overloaded.

Giving the current numbers 500usec as the upper limit is more than  enough.
Should it ever timeout then something is definitely wrong.

While here, also replace the type with u32 since long does not really
fit here.

Cc: Paul Zimmerman <paul.zimmerman@synopsys.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2011-09-09 13:02:13 +03:00
..
core.c usb: dwc3: core: move the core check before soft reset 2011-09-09 13:02:09 +03:00
core.h usb: dwc3: gadget: rework the dequeue on RESET & DISCONNECT 2011-09-09 13:02:10 +03:00
debug.h
debugfs.c usb: dwc3: debugfs: remove test mode interface 2011-09-09 13:02:08 +03:00
dwc3-omap.c
dwc3-pci.c
ep0.c usb: dwc3: ep0: simplify EP0 state machine 2011-09-09 13:02:07 +03:00
gadget.c usb: dwc3: gadget: replace mdelay with udelay in the busy loop 2011-09-09 13:02:13 +03:00
gadget.h usb: fix dwc3 build when USB_GADGET_DWC3 is not enabled 2011-08-24 15:06:53 -07:00
io.h
Kconfig
Makefile