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.
This commit is contained in:
augustss 2000-03-14 23:13:12 +00:00
parent 97965ecea8
commit 1e1f1f3b3b

View File

@ -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)