Re: USB changes.

From: Joe Altman (fj_at_panix.com)
Date: 04/28/05

  • Next message: Adrian Steinmann: "unexpected panic in idle process (RELENG_5 2005/04/25UTC)"
    Date: Thu, 28 Apr 2005 16:30:46 -0400
    To: Julian Elischer <julian@elischer.org>
    
    

    On Thu, Apr 28, 2005 at 01:23:25PM -0700, Julian Elischer wrote:
    >
    >
    > Joe Altman wrote:
    >
    > >On Thu, Apr 28, 2005 at 12:55:31PM -0700, Julian Elischer wrote:
    > >
    > >
    > >>>>Can you confirm that usb.c ends with:
    > >>>>SYSINIT(usb_cold_explore, SI_SUB_INT_CONFIG_HOOKS, SI_ORDER_FIRST,
    > >>>>usb_cold_explore, NULL);
    > >>>>
    > >>>>
    > >>/usr/src/sys/dev/usb/usb.c
    > >>
    > >>
    >
    > ^^^^^^^^^^^^^^^^^^^^^^^^^^^

    Oh; sorry...I must have gone cross-eyed.

    Here is the tail of the file, with timestamp:

         Apr 27 00:07 /usr/src/sys/dev/usb/usb.c

    /* Explore USB busses at the end of device configuration. */
    Static void
    usb_cold_explore(void *arg)
    {
            struct usb_softc *sc;

            KASSERT(cold || TAILQ_EMPTY(&usb_coldexplist),
                ("usb_cold_explore: busses to explore when !cold"));
            while (!TAILQ_EMPTY(&usb_coldexplist)) {
                    sc = TAILQ_FIRST(&usb_coldexplist);
                    TAILQ_REMOVE(&usb_coldexplist, sc, sc_coldexplist);

                    sc->sc_bus->use_polling++;
                    sc->sc_port.device->hub->explore(sc->sc_bus->root_hub);
                    sc->sc_bus->use_polling--;
            }
    }

    DRIVER_MODULE(usb, ohci, usb_driver, usb_devclass, 0, 0);
    DRIVER_MODULE(usb, uhci, usb_driver, usb_devclass, 0, 0);
    DRIVER_MODULE(usb, ehci, usb_driver, usb_devclass, 0, 0);
    SYSINIT(usb_cold_explore, SI_SUB_INT_CONFIG_HOOKS, SI_ORDER_FIRST,
        usb_cold_explore, NULL);
    #endif

    -- 
    I don't care what you think. This is not a stylishly insouciant stroll
    out of the jungle, here. It's more like we've fallen out of our trees
    and rolled, ***-naked before the entire galaxy, downhill. That, and
    we seem to have a teensy problem lifting ourselves off the ground.
    _______________________________________________
    freebsd-stable@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-stable
    To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
    

  • Next message: Adrian Steinmann: "unexpected panic in idle process (RELENG_5 2005/04/25UTC)"