Browse Source

usb: gadget: mv_udc: reduce the delay interval

There are several places use udelay(LOOPS_USEC) to wait the status to be
changed, but the delay interval is a bit too long, so reduce it to
enhance the performance.

Signed-off-by: Neil Zhang <zhangwm@marvell.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Neil Zhang 13 years ago
parent
commit
9b2035a0b9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/usb/gadget/mv_udc_core.c

+ 1 - 1
drivers/usb/gadget/mv_udc_core.c

@@ -53,7 +53,7 @@
 #define READSAFE_TIMEOUT	1000
 #define DTD_TIMEOUT		1000
 
-#define LOOPS_USEC_SHIFT	4
+#define LOOPS_USEC_SHIFT	1
 #define LOOPS_USEC		(1 << LOOPS_USEC_SHIFT)
 #define LOOPS(timeout)		((timeout) >> LOOPS_USEC_SHIFT)