Use usbd_clear_endpoint_stall_async() instead of usbd_clear_endpoint_stall()

in Tx/Rx callbacks.

Obtained from:	NetBSD
This commit is contained in:
Damien Bergamini 2005-11-29 21:07:32 +00:00
parent 3d5dc80e4d
commit 635df8de16

View File

@ -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;
}