Re: [linux-usb] Re: [patch] drivers/usb/usb.c: auto loading of USB

Thomas Sailer (sailer@ife.ee.ethz.ch)
Tue, 21 Dec 1999 15:52:54 +0100


Alan Cox wrote:

> The assumption is fixable
>
> if(no_driver_for(bus))
> {
> char buf[64];
> sprintf(buf, "usb_bus %d", bus);
> ....
>
> }

Eh? How is that supposed to work?

bus gets deallocated if its associated hcd is unloaded,
so htf should usbcore know how many busses there are?

And when should that code fragment be executed?

On a telepathic signal from the user when he plugs in a USB device?

You need hcd already loaded to detect plug in events...

Tom

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/