You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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>
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user