summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_atu.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_atu.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_atu.c')
-rw-r--r--sys/dev/usb/if_atu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/if_atu.c b/sys/dev/usb/if_atu.c
index b79368dcf34..c6c5c29f014 100644
--- a/sys/dev/usb/if_atu.c
+++ b/sys/dev/usb/if_atu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_atu.c,v 1.66 2006/01/29 01:13:47 dlg Exp $ */
+/* $OpenBSD: if_atu.c,v 1.67 2006/01/29 03:22:52 brad Exp $ */
/*
* Copyright (c) 2003, 2004
* Daan Vreeken <Danovitsch@Vitsch.net>. All rights reserved.
@@ -1698,7 +1698,7 @@ atu_rxeof(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status status)
USBDEVNAME(sc->atu_dev), usbd_errstr(status)));
}
if (status == USBD_STALLED)
- usbd_clear_endpoint_stall(
+ usbd_clear_endpoint_stall_async(
sc->atu_ep[ATU_ENDPT_RX]);
goto done;
}
@@ -1801,7 +1801,7 @@ atu_txeof(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status status)
DPRINTF(("%s: usb error on tx: %s\n", USBDEVNAME(sc->atu_dev),
usbd_errstr(status)));
if (status == USBD_STALLED)
- usbd_clear_endpoint_stall(sc->atu_ep[ATU_ENDPT_TX]);
+ usbd_clear_endpoint_stall_async(sc->atu_ep[ATU_ENDPT_TX]);
return;
}