lkml.org 
[lkml]   [1999]   [Dec]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [linux-usb] Re: [patch] drivers/usb/usb.c: auto loading of USB
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/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.088 / U:0.156 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site