usb: dwc3: shorten long delay in dwc3_gadget_set_link_state()
authorPaul Zimmerman <Paul.Zimmerman@synopsys.com>
Sat, 25 Feb 2012 01:32:15 +0000 (17:32 -0800)
committerFelipe Balbi <balbi@ti.com>
Fri, 2 Mar 2012 10:12:09 +0000 (12:12 +0200)
commitaee63e3cb6b0396b99c6387a47cb90a7417f3957
tree76468eed5464d6fca184f725467060518d23b5cd
parent7d26b58735f5badf2b7ce3320c6ba21b603c77a9
usb: dwc3: shorten long delay in dwc3_gadget_set_link_state()

The loop in dwc3_gadget_set_link_state() was using a udelay(500),
which is a long time to delay in interrupt context. Change it to
udelay(5) and increase the loop count to match.

Signed-off-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/gadget.c