On Wed, Jun 14, 2006 at 04:51:37PM -0400, Alan Stern wrote:
> On Tue, 13 Jun 2006, David Brownell wrote:
> 
> > >      4. Make usb_generic into a genuine device driver.  This involves
> > >   adding a mechanism to tell apart USB interface drivers from USB
> > >   device drivers -- of which usb_generic is currently the only one.
> 
> It turns out there is a small disadvantage to doing this.
> 
> usb_generic doesn't bind to a device until the device is registered.  
> This means that all the early dev_info and dev_dbg log messages in
> usb_new_device, hub_port_init, and so on, don't have a device driver name.
> 
> Maybe I should replace those macros with something like "usb_info" and 
> "usb_dbg" that would always print "usb" for the driver name.

There's a patch floating around lkml that changes the way dev_* works,
so that if there is no driver bound, it prints the bus name.  So for
this, it would show "usb", which is what we want.  Try it out and if it
works, I'll be glad to add it.

thanks,

greg k-h


_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to