summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/mv_udc_core.c
diff options
context:
space:
mode:
authorNeil Zhang <zhangwm@marvell.com>2012-07-10 10:07:01 +0800
committerFelipe Balbi <balbi@ti.com>2012-08-23 11:04:14 +0300
commit9b2035a0b9ee9745c236cc2ec1ec0b0eae692a1a (patch)
tree307aef26426dbd762647bf749fa01dae6418b3a4 /drivers/usb/gadget/mv_udc_core.c
parentd9875690d9b89a866022ff49e3fcea892345ad92 (diff)
downloadtalos-obmc-linux-9b2035a0b9ee9745c236cc2ec1ec0b0eae692a1a.tar.gz
talos-obmc-linux-9b2035a0b9ee9745c236cc2ec1ec0b0eae692a1a.zip
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>
Diffstat (limited to 'drivers/usb/gadget/mv_udc_core.c')
-rw-r--r--drivers/usb/gadget/mv_udc_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/mv_udc_core.c b/drivers/usb/gadget/mv_udc_core.c
index 75db2c306cea..9e40f89635b2 100644
--- a/drivers/usb/gadget/mv_udc_core.c
+++ b/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)
OpenPOWER on IntegriCloud