diff options
| author | sakumisu <[email protected]> | 2025-07-30 22:50:21 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2025-07-30 22:50:21 +0800 |
| commit | e574ea8ae3df9ec3fd48486fb069ca18dfcaeec1 (patch) | |
| tree | d5c437ff265ae151601854364174345d866af99b | |
| parent | f949e1656487a3951d63cac2e7083ca7239a44c0 (diff) | |
Revert "fix(port): reset sem when pipe free"
This reverts commit ccd435496036cdceebb6d35df3edeb16695b0548.
| -rw-r--r-- | port/dwc2/usb_hc_dwc2.c | 2 | ||||
| -rw-r--r-- | port/ehci/usb_hc_ehci.c | 2 | ||||
| -rw-r--r-- | port/musb/usb_hc_musb.c | 2 | ||||
| -rw-r--r-- | port/rp2040/usb_hc_rp2040.c | 2 |
4 files changed, 0 insertions, 8 deletions
diff --git a/port/dwc2/usb_hc_dwc2.c b/port/dwc2/usb_hc_dwc2.c index b7994942..b8d54c3e 100644 --- a/port/dwc2/usb_hc_dwc2.c +++ b/port/dwc2/usb_hc_dwc2.c @@ -508,8 +508,6 @@ static void dwc2_chan_free(struct dwc2_chan *chan) { size_t flags; - usb_osal_sem_reset(chan->waitsem); - flags = usb_osal_enter_critical_section(); if (chan->urb) { chan->urb->hcpriv = NULL; diff --git a/port/ehci/usb_hc_ehci.c b/port/ehci/usb_hc_ehci.c index 0991da6f..398d2430 100644 --- a/port/ehci/usb_hc_ehci.c +++ b/port/ehci/usb_hc_ehci.c @@ -98,8 +98,6 @@ static void ehci_qh_free(struct usbh_bus *bus, struct ehci_qh_hw *qh) struct ehci_qtd_hw *qtd; size_t flags; - usb_osal_sem_reset(qh->waitsem); - flags = usb_osal_enter_critical_section(); if (qh->urb) { qh->urb->hcpriv = NULL; diff --git a/port/musb/usb_hc_musb.c b/port/musb/usb_hc_musb.c index 263b3f9a..fe2da20a 100644 --- a/port/musb/usb_hc_musb.c +++ b/port/musb/usb_hc_musb.c @@ -504,8 +504,6 @@ static int musb_pipe_alloc(void) static void musb_pipe_free(struct musb_pipe *pipe) { - usb_osal_sem_reset(pipe->waitsem); - if (pipe->urb) { pipe->urb->hcpriv = NULL; pipe->urb = NULL; diff --git a/port/rp2040/usb_hc_rp2040.c b/port/rp2040/usb_hc_rp2040.c index a75f4073..14764fb3 100644 --- a/port/rp2040/usb_hc_rp2040.c +++ b/port/rp2040/usb_hc_rp2040.c @@ -68,8 +68,6 @@ static void rp2040_pipe_free(struct rp2040_pipe *pipe) { size_t flags; - usb_osal_sem_reset(pipe->waitsem); - flags = usb_osal_enter_critical_section(); if (pipe->urb) { pipe->urb->hcpriv = NULL; |
