Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Make sure the USB event thread discovers all dev...



details:   https://anonhg.NetBSD.org/src/rev/62b7b612be96
branches:  trunk
changeset: 483645:62b7b612be96
user:      augustss <augustss%NetBSD.org@localhost>
date:      Tue Mar 14 23:13:12 2000 +0000

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

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

diffs (19 lines):

diff -r 6df6603f9a11 -r 62b7b612be96 sys/dev/usb/usb.c
--- a/sys/dev/usb/usb.c Tue Mar 14 22:42:48 2000 +0000
+++ b/sys/dev/usb/usb.c Tue Mar 14 23:13:12 2000 +0000
@@ -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 @@
 
        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)



Home | Main Index | Thread Index | Old Index