Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb from Anon Ymous:



details:   https://anonhg.NetBSD.org/src/rev/1d24b48621e9
branches:  trunk
changeset: 757881:1d24b48621e9
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Oct 01 20:56:50 2010 +0000

description:
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.

diffstat:

 sys/dev/usb/umodem_common.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 91b37c44fd9e -r 1d24b48621e9 sys/dev/usb/umodem_common.c
--- a/sys/dev/usb/umodem_common.c       Fri Oct 01 20:56:10 2010 +0000
+++ b/sys/dev/usb/umodem_common.c       Fri Oct 01 20:56:50 2010 +0000
@@ -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;
        }
 



Home | Main Index | Thread Index | Old Index