diff options
author | 2006-01-29 03:22:52 +0000 | |
---|---|---|
committer | 2006-01-29 03:22:52 +0000 | |
commit | 2c1b7be245b7d9dfa4bb399f02e1451effa0fba5 (patch) | |
tree | 14d045884f93b789e2bf81d86ef272d347090ba0 /sys/dev/usb/if_ral.c | |
parent | prettify dmesg output a touch. from Michael Knudsen. (diff) | |
download | wireguard-openbsd-2c1b7be245b7d9dfa4bb399f02e1451effa0fba5.tar.xz wireguard-openbsd-2c1b7be245b7d9dfa4bb399f02e1451effa0fba5.zip |
Use usbd_clear_endpoint_stall_async() when clearing endpoint stalls in
an interrupt context.
From NetBSD
ok dlg@
Diffstat (limited to 'sys/dev/usb/if_ral.c')
-rw-r--r-- | sys/dev/usb/if_ral.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/if_ral.c b/sys/dev/usb/if_ral.c index b90945db3b6..769be5e7655 100644 --- a/sys/dev/usb/if_ral.c +++ b/sys/dev/usb/if_ral.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ral.c,v 1.61 2006/01/22 21:41:03 damien Exp $ */ +/* $OpenBSD: if_ral.c,v 1.62 2006/01/29 03:22:52 brad Exp $ */ /*- * Copyright (c) 2005, 2006 @@ -848,7 +848,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_tx_pipeh); + usbd_clear_endpoint_stall_async(sc->sc_tx_pipeh); ifp->if_oerrors++; return; @@ -891,7 +891,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; } |