From dc97314695ddcd3cd757662402d9d71d629340de Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Sat, 30 Sep 2006 14:07:21 +0000 Subject: MFC rev 1.15: date: 2006/09/22 12:45:42; author: cognet; state: Exp; lines: +2 -2 Use usbd_clear_endpoint_stall_async() when clearing endpoint stalls in an interrupt context. Obtained from: NetBSD Approved by: re --- sys/dev/usb/if_cdce.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/usb/if_cdce.c b/sys/dev/usb/if_cdce.c index 61bfe8518b71..9bd87ee48c1f 100644 --- a/sys/dev/usb/if_cdce.c +++ b/sys/dev/usb/if_cdce.c @@ -610,7 +610,7 @@ cdce_rxeof(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status status) printf("%s: usb error on rx: %s\n", USBDEVNAME(sc->cdce_dev), usbd_errstr(status)); if (status == USBD_STALLED) - usbd_clear_endpoint_stall(sc->cdce_bulkin_pipe); + usbd_clear_endpoint_stall_async(sc->cdce_bulkin_pipe); DELAY(sc->cdce_rxeof_errors * 10000); sc->cdce_rxeof_errors++; goto done; @@ -678,7 +678,7 @@ cdce_txeof(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status status) printf("%s: usb error on tx: %s\n", USBDEVNAME(sc->cdce_dev), usbd_errstr(status)); if (status == USBD_STALLED) - usbd_clear_endpoint_stall(sc->cdce_bulkout_pipe); + usbd_clear_endpoint_stall_async(sc->cdce_bulkout_pipe); CDCE_UNLOCK(sc); return; } -- cgit v1.3