From: Neil Zhang Date: Tue, 10 Jul 2012 02:07:01 +0000 (+0800) Subject: usb: gadget: mv_udc: reduce the delay interval X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9b2035a0b9ee9745c236cc2ec1ec0b0eae692a1a;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Felipe Balbi --- 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)