mirror of
https://github.com/sakumisu/CherryUSB.git
synced 2025-10-14 02:58:19 +08:00
Revert "fix(port): reset sem when pipe free"
This reverts commit ccd4354960
.
This commit is contained in:
@@ -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;
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user