This is a followup on a previous thread! Here is the link for that thread
http://sourceforge.net/mailarchive/forum.php?thread_id=3882571&forum_id=5398

Just to recap, My modem offers 2 configurations (bNumConfigurations=2)
Config 1 = MSFT
 RNDIS & config 2 = CDC Ethernet.

When I said Linux 2.4.X recognises my device successfully, I might have
jumped the gun! All my previous tests were conducted with RH7.2 which has
CDCEther.c version  0.98.4 04 July 2001

Today when testing with RH9.0 which has CDCEther.c version 0.98.6 07 Jan
2002, I found that the linux box does not configure my modem to config 2 and
says none of the interfaces on config1 were claimed.


usb.c does a set configuration for config 1. The acm driver is probed with
this config and the acm driver appropriately does not claim any of the
interfaces. CDCEther_probe is not called at all.

I have basically narrowed down the problem to this line of code

version 0.98.6
 // We only try to claim CDC Ethernet model devices */
 static struct usb_device_id CDCEther_ids[] = {
         { USB_INTERFACE_INFO(USB_CLASS_COMM, 6, 0) },
         { }
 };

version 0.98.4
 /* Take any CDC device, and sort it out in probe() */
static struct usb_device_id CDCEther_ids[] = {
      { USB_DEVICE_INFO(USB_CLASS_COMM, 0, 0) },
       { } /* Terminating null entry */
 };


Now my question is " Any particular reason as to why this change was made?"
With this change the driver can now support a pure CDC-Ethernet device only
i.e. if all the configurations are CDC-Ethernet variants only. Sadly for
me, RNDIS is a CDC-ACM variant :(

Am I right in this analysis or am I missing something?


I found that if I add       { USB_DEVICE_INFO(USB_CLASS_COMM, 0, 0) } as the
second entry in the table for version 0.98.6 everything works fine!!


Just as a side note, if you see the change logs for acm.c
v0.17 - added new style probing
v0.18 - fixed new style probing for devices with more configurations

Looks like acm.c did not have this support earlier and it was added later.
However, in the case of CDCEther.c it seems to be the other way round!!!

Looking forward to an early response!!  and thanks in advance for all those
who respond.

-- Prashanth








-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to