NetBSD-Bugs archive

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

Re: port-i386/47244: Fit PC2i (Atom processor) won't boot i386-current



On Nov 25,  8:15pm, htodd%twofifty.com@localhost (htodd%twofifty.com@localhost) 
wrote:
-- Subject: port-i386/47244: Fit PC2i (Atom processor) won't boot i386-curren

Try:

Index: if_run.c
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/if_run.c,v
retrieving revision 1.4
diff -u -p -u -r1.4 if_run.c
--- if_run.c    20 Aug 2012 07:32:49 -0000      1.4
+++ if_run.c    25 Nov 2012 22:13:37 -0000
@@ -495,6 +495,7 @@ run_attach(device_t parent, device_t sel
 
        sc->sc_dev = self;
        sc->sc_udev = uaa->device;
+       sc->sc_flags |= RUN_DETACHING;  /* Prevent addition of usb tasks */
 
        devinfop = usbd_devinfo_alloc(sc->sc_udev, 0);
        aprint_normal_dev(sc->sc_dev, "%s\n", devinfop);
@@ -665,6 +666,7 @@ run_attach(device_t parent, device_t sel
        ieee80211_announce(ic);
 
        usbd_add_drv_event(USB_EVENT_DRIVER_ATTACH, sc->sc_udev, sc->sc_dev);
+       sc->sc_flags &= ~RUN_DETACHING; /* Allow addition of usb tasks */
 }


if_otus needs the same treatment too. This makes some commands lost,
(setshortslot), but presumably it will catch up later.

christos


Home | Main Index | Thread Index | Old Index