提交 9b2035a0 编写于 作者: N Neil Zhang 提交者: Felipe Balbi

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: NNeil Zhang <zhangwm@marvell.com>
Signed-off-by: NFelipe Balbi <balbi@ti.com>
上级 d9875690
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
#define READSAFE_TIMEOUT 1000 #define READSAFE_TIMEOUT 1000
#define DTD_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_USEC (1 << LOOPS_USEC_SHIFT)
#define LOOPS(timeout) ((timeout) >> LOOPS_USEC_SHIFT) #define LOOPS(timeout) ((timeout) >> LOOPS_USEC_SHIFT)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册