summaryrefslogtreecommitdiff
path: root/drivers/usb/dwc3/gadget.c
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2012-01-02 17:25:16 (GMT)
committerFelipe Balbi <balbi@ti.com>2012-02-06 09:48:25 (GMT)
commit138801aaa566ecb5a5739a85909b9ec7285efd70 (patch)
treef7f2712f31e5f9914fa73044eae733a3754b02e6 /drivers/usb/dwc3/gadget.c
parent8598bde7fa125e85bc97decd6513d37dcf1e7bd9 (diff)
downloadlinux-fsl-qoriq-138801aaa566ecb5a5739a85909b9ec7285efd70.tar.xz
usb: dwc3: gadget: allow Link state changes via debugfs
This is very useful for low level link testing where we might not have a USB Host stack, only a scope to verify signal integrity. Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/gadget.c')
-rw-r--r--drivers/usb/dwc3/gadget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
index 8000395..e0e2337 100644
--- a/drivers/usb/dwc3/gadget.c
+++ b/drivers/usb/dwc3/gadget.c
@@ -117,7 +117,7 @@ int dwc3_gadget_set_link_state(struct dwc3 *dwc, enum dwc3_link_state state)
if (DWC3_DSTS_USBLNKST(reg) == state)
return 0;
- usleep_range(500, 1500);
+ udelay(500);
}
dev_vdbg(dwc->dev, "link state change request timed out\n");