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

Alan Cox (alan@lxorguk.ukuu.org.uk)
Tue, 21 Dec 1999 14:09:47 +0000 (GMT)


> > Then usb-uhci is unloaded after time, possibly when usbcore isnt. It doesn't
>
> Not if the -k option isn't given to modprobe in the post-install rule.
> Anyway, the MOD_USE_COUNT should take care of that, surely?

So you want to wedge it in memory. MOD_USE_COUNT btw doesn't take care of it.

> > Dont go that way . The sound folks relied on it for a bit - its a mistake
>
> I don't see why it's any worse than having magic module aliases in the
> kernel (with the implicit assumption that there is only _one_ possible
> lowlevel parport/scsi/usb driver for any one machine).

The assumption is fixable

if(no_driver_for(bus))
{
char buf[64];
sprintf(buf, "usb_bus %d", bus);
....

}

-
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/