On Tue, Jun 13, 2006 at 10:21:06AM -0400, Alan Stern wrote:
> On Mon, 12 Jun 2006, Greg KH wrote:
> > One comment thought:
> > > +         /* FIXME: What is an appropriate MODALIAS line for a
> > > +          * USB device (not interface)? */
> > 
> > There isn't one.
> 
> Clearly it doesn't matter until people start writing alternate device 
> drivers.

Ok, good point.

> > In fact, you shouldn't be adding _any_ usb stuff for uevents for usb
> > devices, we only care about interfaces.  Why did you change this?
> 
> Well, the uevent _was_ getting generated -- that's done by the driver core 
> -- it just didn't have any USB information added in to the environment 
> variables.

True.

> It turns out that in fact we _do_ care now about adding USB devices.  
> This is because of the new power-budgeting restrictions; people sometimes
> want to install a configuration automatically (in a udev script) even
> though it violates the power budget.  Since by default no configuration
> is selected there _are_ no interfaces registered, so the only event to
> trigger from is the one corresponding to the device itself.

Which, as you state, we already emit, and you can write udev rules based
on it today.

But we don't want to add MODALIAS stuff without really thinking about
it, otherwise we are back to old, pre-2.4 ways with usb devices :)

thanks,

greg k-h


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

Reply via email to