On Sat, Nov 05, 2005 at 02:52:56AM +0200, Alexander Kanavin wrote: > Greg KH wrote: > > >>Yes. And then it's a little bit tricky: you have to tell the usb_serial > >>driver framework that this other interface needs to be used, rather than > >>supplied serial->interface (which is the master interface). You probably > >>can simply replace serial->interface, but I'm not sure if such a thing is > >>allowed. > > > > > >Sorry, but no, that is not currently allowed. But there are ways around > >it, see the cdc-acm driver for details, as it does it for some devices. > > I had a look at cdc-acm, and the only device specific thing that it does > is hardcoding interface numbers for some broken modems which have no CDC > union descriptor, which is exactly what we're trying to avoid. Is there > something else I missed? > > Changing the interface in probe() would be possible if > usb_serial_probe() would set its interface pointer to serial->interface > > 603 id = usb_match_id(interface, type->id_table); > 604 retval = type->probe(serial, id); > > here.
I'm sorry, but I don't understand. Care to just mock up a patch to show what you mean? thanks, greg k-h ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
