On Fri, 4 Nov 2005, Pawel Kot wrote:

More or less that was my intention. Speaking of removing product ids,
you mean id_table? How can I use it not giving new phone ids there?

Simple:
static struct usb_device_id id_table [] = {
        { USB_INTERFACE_INFO(USB_CLASS_COMM, 254, 0) },
        { }                                     /* Terminating entry */
};

As far as I understand the algorithm should look like:
1. if the class is 2 and subclass 254, take the slave interface number
(usb_serial->interface[n])

You probably have to go through serial->dev to access the interfaces' array, I'm not sure. You can also check the vendor id at this point.

2. find active configuration within the interface
(usb_host_interface->endpoint != null)

Yep.

3. set this configuration to interface (usb_set-interface())

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.


Alexander

Homepage: http://www.sensi.org/~ak/


-------------------------------------------------------
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

Reply via email to