On Tue, 15 Aug 2006, Peter Oehry wrote: > > > > Assuming you > > > > really want to do that, it wouldn't be too hard to add support for > > > > allowing a driver to change device configurations. > > > > > > How would I do that? > > > > Try the patch below. (Note: I haven't tested it.) > > > > I tried to change the configuration in the probe entry point of the > module. Obviously it was a bad idea. :-( I got either an immediate > deadlock or some hanging modules later on.
Did you do it by calling the new usb_driver_set_configuration() routine in the patch I sent? Or did you do it by calling the old usb_set_configuration() routine? That is guaranteed to deadlock if you call it from within a probe method. > I can not thing of an other place in the module where the configuration > switchin would be in the right place. > > More and more I come to the conclusion that your first statement was the > best. It has to be done by udev or hotplug. I think I can not expect the > usb core module to be adapted for the needs of a single device. Adapting a driver for a single device isn't so bad. It has been done lots of times. In fact the kernel supports entire architectures which are used by only two or three people in the whole world! Alan Stern ------------------------------------------------------------------------- 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