diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2006-01-29 03:22:53 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2006-01-29 03:22:53 +0000 |
commit | 3d76b07b9d92efa127be76a0c31dde39d891a633 (patch) | |
tree | 183e8cb51091b5e40f179999a85cb134d3497d22 /sys/dev/usb/if_udav.c | |
parent | c795e165715a67c0c0e72133dcc184063cec129a (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_udav.c')
-rw-r--r-- | sys/dev/usb/if_udav.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/if_udav.c b/sys/dev/usb/if_udav.c index 73f851a0ac0..9709b602cf3 100644 --- a/sys/dev/usb/if_udav.c +++ b/sys/dev/usb/if_udav.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_udav.c,v 1.13 2005/08/01 05:36:48 brad Exp $ */ +/* $OpenBSD: if_udav.c,v 1.14 2006/01/29 03:22:52 brad Exp $ */ /* $NetBSD: if_udav.c,v 1.3 2004/04/23 17:25:25 itojun Exp $ */ /* $nabe: if_udav.c,v 1.3 2003/08/21 16:57:19 nabe Exp $ */ /* @@ -1081,7 +1081,7 @@ udav_txeof(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status status) usbd_errstr(status)); if (status == USBD_STALLED) { sc->sc_refcnt++; - usbd_clear_endpoint_stall(sc->sc_pipe_tx); + usbd_clear_endpoint_stall_async(sc->sc_pipe_tx); if (--sc->sc_refcnt < 0) usb_detach_wakeup(USBDEV(sc->sc_dev)); } @@ -1128,7 +1128,7 @@ udav_rxeof(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status status) } if (status == USBD_STALLED) { sc->sc_refcnt++; - usbd_clear_endpoint_stall(sc->sc_pipe_rx); + usbd_clear_endpoint_stall_async(sc->sc_pipe_rx); if (--sc->sc_refcnt < 0) usb_detach_wakeup(USBDEV(sc->sc_dev)); } |