usb: gadget: mv_udc: reduce the delay interval
authorNeil Zhang <zhangwm@marvell.com>
Tue, 10 Jul 2012 02:07:01 +0000 (10:07 +0800)
committerFelipe Balbi <balbi@ti.com>
Thu, 23 Aug 2012 08:04:14 +0000 (11:04 +0300)
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>
drivers/usb/gadget/mv_udc_core.c

index 75db2c306cea24ba3736b1ebd8c689546d02c2c5..9e40f89635b2815051806e55e3193cb26c810a9c 100644 (file)
@@ -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)