summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authoraugustss <augustss@NetBSD.org>2000-03-14 23:13:12 +0000
committeraugustss <augustss@NetBSD.org>2000-03-14 23:13:12 +0000
commit1e1f1f3b3bd22dc166bd3ac38bd76e6ea197923c (patch)
treee5896ce83ab255f822f3b0a2a7754988f91a6a64 /sys/dev
parent97965ecea8000cb71f9dc19ba075d0c52009e8e0 (diff)
Make sure the USB event thread discovers all devices first time it call
usb_discover(). It should now be possible to have the root NFS mounted over a USB Ethernet adapter.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/usb.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/usb/usb.c b/sys/dev/usb/usb.c
index 2fcd398310f..a7b47fe966c 100644
--- a/sys/dev/usb/usb.c
+++ b/sys/dev/usb/usb.c
@@ -1,4 +1,4 @@
-/* $NetBSD: usb.c,v 1.39 2000/02/22 11:30:56 augustss Exp $ */
+/* $NetBSD: usb.c,v 1.40 2000/03/14 23:13:12 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/usb.c,v 1.20 1999/11/17 22:33:46 n_hibma Exp $ */
/*
@@ -283,6 +283,9 @@ usb_event_thread(arg)
DPRINTF(("usb_event_thread: start\n"));
+ /* Make sure first discover does something. */
+ sc->sc_bus->needs_explore = 1;
+
while (!sc->sc_dying) {
#ifdef USB_DEBUG
if (usb_noexplore < 2)