On Sun, 13 Aug 2006 15:04:12 -0400 (EDT) Alan Stern <[EMAIL PROTECTED]> wrote:
> > I'd like so setup something that the configuration will automatically > > be chosen after plugin of the device. > > > > > > In the linux/usb.h header it is said, thet a device driver not attempt > > to activate configurations. So my question is where is the right place > > to do this? > > The right place to do it is userspace. > > > I think a patch for the hub.c (where the default configuration is > > chosen) would also be a bad Idea? Becaus the hub.c would make > > decisions depending on vendor and device ID. > > > > Or is there a user space configuration to influence this decision? > > You should write a hotplug or udev script that will detect the creation > events for this device and will write the desired configuration number to > /sys/devices/.../bConfigurationValue. > This will mean that the usb-driver itself (without an udev or hotplug script) will not be able to support the full function of this device. So it will be necessary to explain every user of this device that he has to have such a script before he can use all features of the driver. So at least for the enduser it seems to be a bit complicated. The usb driver will already have some code esspecially for this device. So wouldn't it be consequential that de driver should enter the usb device in the appropriate configuration? Peter Oehry ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel