summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--port/ehci/usb_hc_ehci.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/port/ehci/usb_hc_ehci.c b/port/ehci/usb_hc_ehci.c
index 3ad7c9b9..e432a3f7 100644
--- a/port/ehci/usb_hc_ehci.c
+++ b/port/ehci/usb_hc_ehci.c
@@ -1349,9 +1349,8 @@ int usbh_kill_urb(struct usbh_urb *urb)
volatile uint32_t timeout = 0;
EHCI_HCOR->usbcmd |= EHCI_USBCMD_IAAD;
while (!(EHCI_HCOR->usbsts & EHCI_USBSTS_IAA)) {
- usb_osal_msleep(1);
timeout++;
- if (timeout > 100) {
+ if (timeout > 20000) {
usb_osal_leave_critical_section(flags);
return -USB_ERR_TIMEOUT;
}