summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2024-04-19 11:52:04 +0800
committersakumisu <[email protected]>2024-04-19 11:52:04 +0800
commitb97fc903c0873541a2519bf127ecf06c0c437c9e (patch)
tree60e343a9e00f958ddc656fc2e87e937ec35e7d12
parent81ddf9bded0d9e125ddafc7a5e400e74b532e295 (diff)
clear urb timeout after take sem, follow 76f58b93
-rw-r--r--port/dwc2/usb_hc_dwc2.c1
-rw-r--r--port/ehci/usb_hc_ehci.c1
-rw-r--r--port/musb/usb_hc_musb.c1
3 files changed, 0 insertions, 3 deletions
diff --git a/port/dwc2/usb_hc_dwc2.c b/port/dwc2/usb_hc_dwc2.c
index 9f8d18a3..59cd0c93 100644
--- a/port/dwc2/usb_hc_dwc2.c
+++ b/port/dwc2/usb_hc_dwc2.c
@@ -811,7 +811,6 @@ int usbh_kill_urb(struct usbh_urb *urb)
urb->errorcode = -USB_ERR_SHUTDOWN;
if (urb->timeout) {
- urb->timeout = 0;
usb_osal_sem_give(chan->waitsem);
} else {
dwc2_chan_free(chan);
diff --git a/port/ehci/usb_hc_ehci.c b/port/ehci/usb_hc_ehci.c
index b40625da..d93fefcf 100644
--- a/port/ehci/usb_hc_ehci.c
+++ b/port/ehci/usb_hc_ehci.c
@@ -1258,7 +1258,6 @@ int usbh_kill_urb(struct usbh_urb *urb)
qh->urb = NULL;
if (urb->timeout) {
- urb->timeout = 0;
usb_osal_sem_give(qh->waitsem);
} else {
ehci_qh_free(bus, qh);
diff --git a/port/musb/usb_hc_musb.c b/port/musb/usb_hc_musb.c
index ed74d9c3..ef700fbf 100644
--- a/port/musb/usb_hc_musb.c
+++ b/port/musb/usb_hc_musb.c
@@ -705,7 +705,6 @@ int usbh_kill_urb(struct usbh_urb *urb)
pipe->urb = NULL;
if (urb->timeout) {
- urb->timeout = 0;
usb_osal_sem_give(pipe->waitsem);
} else {
musb_pipe_free(pipe);