From b97fc903c0873541a2519bf127ecf06c0c437c9e Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Fri, 19 Apr 2024 11:52:04 +0800 Subject: clear urb timeout after take sem, follow 76f58b93 --- port/dwc2/usb_hc_dwc2.c | 1 - port/ehci/usb_hc_ehci.c | 1 - port/musb/usb_hc_musb.c | 1 - 3 files changed, 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); -- cgit v1.3.1