From 635df8de16068f22cd1fe5fce2ca2a855af43a7d Mon Sep 17 00:00:00 2001 From: Damien Bergamini Date: Tue, 29 Nov 2005 21:07:32 +0000 Subject: [PATCH] Use usbd_clear_endpoint_stall_async() instead of usbd_clear_endpoint_stall() in Tx/Rx callbacks. Obtained from: NetBSD --- sys/dev/usb/if_ural.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/usb/if_ural.c b/sys/dev/usb/if_ural.c index cd297e9e688..6f1cd83d602 100644 --- a/sys/dev/usb/if_ural.c +++ b/sys/dev/usb/if_ural.c @@ -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; }