mirror of
https://github.com/opnsense/src.git
synced 2026-04-21 22:27:47 -04:00
Use usbd_clear_endpoint_stall_async() instead of usbd_clear_endpoint_stall()
in Tx/Rx callbacks. Obtained from: NetBSD
This commit is contained in:
parent
3d5dc80e4d
commit
635df8de16
1 changed files with 2 additions and 2 deletions
|
|
@ -872,7 +872,7 @@ ural_txeof(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status status)
|
|||
USBDEVNAME(sc->sc_dev), usbd_errstr(status));
|
||||
|
||||
if (status == USBD_STALLED)
|
||||
usbd_clear_endpoint_stall(sc->sc_rx_pipeh);
|
||||
usbd_clear_endpoint_stall_async(sc->sc_rx_pipeh);
|
||||
|
||||
ifp->if_oerrors++;
|
||||
return;
|
||||
|
|
@ -911,7 +911,7 @@ ural_rxeof(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status status)
|
|||
return;
|
||||
|
||||
if (status == USBD_STALLED)
|
||||
usbd_clear_endpoint_stall(sc->sc_rx_pipeh);
|
||||
usbd_clear_endpoint_stall_async(sc->sc_rx_pipeh);
|
||||
goto skip;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue