summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_wi_usb.c
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2006-01-29 03:22:53 +0000
committerBrad Smith <brad@cvs.openbsd.org>2006-01-29 03:22:53 +0000
commit3d76b07b9d92efa127be76a0c31dde39d891a633 (patch)
tree183e8cb51091b5e40f179999a85cb134d3497d22 /sys/dev/usb/if_wi_usb.c
parentc795e165715a67c0c0e72133dcc184063cec129a (diff)
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_wi_usb.c')
-rw-r--r--sys/dev/usb/if_wi_usb.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/usb/if_wi_usb.c b/sys/dev/usb/if_wi_usb.c
index 60083f5bcdc..636855f9844 100644
--- a/sys/dev/usb/if_wi_usb.c
+++ b/sys/dev/usb/if_wi_usb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_wi_usb.c,v 1.27 2006/01/25 20:58:12 grange Exp $ */
+/* $OpenBSD: if_wi_usb.c,v 1.28 2006/01/29 03:22:52 brad Exp $ */
/*
* Copyright (c) 2003 Dale Rahn. All rights reserved.
@@ -1114,7 +1114,7 @@ wi_usb_txeof(usbd_xfer_handle xfer, usbd_private_handle priv,
usbd_errstr(status));
if (status == USBD_STALLED) {
sc->wi_usb_refcnt++;
- usbd_clear_endpoint_stall(
+ usbd_clear_endpoint_stall_async(
sc->wi_usb_ep[WI_USB_ENDPT_TX]);
if (--sc->wi_usb_refcnt < 0)
usb_detach_wakeup(USBDEV(sc->wi_usb_dev));
@@ -1160,7 +1160,7 @@ wi_usb_txeof_frm(usbd_xfer_handle xfer, usbd_private_handle priv,
usbd_errstr(status));
if (status == USBD_STALLED) {
sc->wi_usb_refcnt++;
- usbd_clear_endpoint_stall(
+ usbd_clear_endpoint_stall_async(
sc->wi_usb_ep[WI_USB_ENDPT_TX]);
if (--sc->wi_usb_refcnt < 0)
usb_detach_wakeup(USBDEV(sc->wi_usb_dev));
@@ -1407,7 +1407,7 @@ wi_usb_rxeof(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status status
#endif
if (status == USBD_STALLED) {
sc->wi_usb_refcnt++;
- usbd_clear_endpoint_stall(
+ usbd_clear_endpoint_stall_async(
sc->wi_usb_ep[WI_USB_ENDPT_RX]);
if (--sc->wi_usb_refcnt < 0)
usb_detach_wakeup(USBDEV(sc->wi_usb_dev));
@@ -1510,7 +1510,7 @@ wi_usb_intr(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status status)
if (status == USBD_STALLED) {
sc->wi_usb_refcnt++;
- usbd_clear_endpoint_stall(
+ usbd_clear_endpoint_stall_async(
sc->wi_usb_ep[WI_USB_ENDPT_RX]);
if (--sc->wi_usb_refcnt < 0)
usb_detach_wakeup(USBDEV(sc->wi_usb_dev));