summaryrefslogtreecommitdiff
path: root/sys/dev/usb/usb.c
diff options
context:
space:
mode:
authoraugustss <augustss@NetBSD.org>1999-09-13 21:33:25 +0000
committeraugustss <augustss@NetBSD.org>1999-09-13 21:33:25 +0000
commitba2c2e2ade784568c190e4658e2a6dd375ca8d89 (patch)
tree97aef50826fb364b65f9bd255d7ad28d0ecee424 /sys/dev/usb/usb.c
parentdf6f3652dd96eacb8717e69ce37a6575b45c6925 (diff)
* Make sure an aborted pipe is marked as not running.
* Start queued request in the right order. * Insert some more DIAGNOSTIC sanity checks.
Diffstat (limited to 'sys/dev/usb/usb.c')
-rw-r--r--sys/dev/usb/usb.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/usb/usb.c b/sys/dev/usb/usb.c
index 896882bd659..957e5a59bb3 100644
--- a/sys/dev/usb/usb.c
+++ b/sys/dev/usb/usb.c
@@ -1,4 +1,4 @@
-/* $NetBSD: usb.c,v 1.20 1999/09/13 19:18:17 augustss Exp $ */
+/* $NetBSD: usb.c,v 1.21 1999/09/13 21:33:25 augustss Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -84,6 +84,7 @@ MALLOC_DEFINE(M_USBHC, "USBHC", "USB host controller");
int usbdebug = 0;
int uhcidebug;
int ohcidebug;
+int usb_noexplore = 0;
#else
#define DPRINTF(x)
#define DPRINTFN(n,x)
@@ -205,6 +206,10 @@ usb_event_thread(arg)
while (!sc->shutdown) {
(void)tsleep(&sc->sc_bus->needs_explore,
PWAIT, "usbevt", hz*30);
+#ifdef USB_DEBUG
+ if (usb_noexplore)
+ continue;
+#endif
DPRINTFN(2,("usb_event_thread: woke up\n"));
usb_discover(sc);
}