From e574ea8ae3df9ec3fd48486fb069ca18dfcaeec1 Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Wed, 30 Jul 2025 22:50:21 +0800 Subject: Revert "fix(port): reset sem when pipe free" This reverts commit ccd435496036cdceebb6d35df3edeb16695b0548. --- port/dwc2/usb_hc_dwc2.c | 2 -- port/ehci/usb_hc_ehci.c | 2 -- port/musb/usb_hc_musb.c | 2 -- port/rp2040/usb_hc_rp2040.c | 2 -- 4 files changed, 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; -- cgit v1.3.1