Module Name: src Committed By: christos Date: Fri Oct 1 20:56:50 UTC 2010
Modified Files: src/sys/dev/usb: umodem_common.c Log Message: from Anon Ymous: Clear the any endpoint stall in the interrupt handler. All other drivers do this and I am pretty sure we need to as well, though I have yet to see a stall in the handler. To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/sys/dev/usb/umodem_common.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/usb/umodem_common.c diff -u src/sys/dev/usb/umodem_common.c:1.20 src/sys/dev/usb/umodem_common.c:1.21 --- src/sys/dev/usb/umodem_common.c:1.20 Fri Oct 1 16:56:10 2010 +++ src/sys/dev/usb/umodem_common.c Fri Oct 1 16:56:50 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: umodem_common.c,v 1.20 2010/10/01 20:56:10 christos Exp $ */ +/* $NetBSD: umodem_common.c,v 1.21 2010/10/01 20:56:50 christos Exp $ */ /* * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -44,7 +44,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: umodem_common.c,v 1.20 2010/10/01 20:56:10 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: umodem_common.c,v 1.21 2010/10/01 20:56:50 christos Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -317,6 +317,8 @@ return; printf("%s: abnormal status: %s\n", USBDEVNAME(sc->sc_dev), usbd_errstr(status)); + if (status == USBD_STALLED) + usbd_clear_endpoint_stall_async(sc->sc_notify_pipe); return; }