Skip to content

Commit

Permalink
usb: gadget: mv_udc: reduce the delay interval
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Neil Zhang authored and Felipe Balbi committed Aug 23, 2012
1 parent d987569 commit 9b2035a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/gadget/mv_udc_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 9b2035a

Please sign in to comment.