Hi,

I got Sharp Zaurus SL-5000D(Linux PDA), and try to connect
via docking station.  It is USB Ether devices but it doesn't
be recognized by linux-2.4.17 kernel.

I'm not sure how to fix is correct. Anyway, this docking station says
it has bInterface Class:SubClass:Protocol = 02:06:00 with bNumEndpoints = 00,
so with the following patch, it works fine for me.

Thanks,
Fumitoshi UKAI (I'm not subscribe linux-usb-devel ML)

--- CDCEther.c.orig     Mon Feb  4 03:56:52 2002
+++ CDCEther.c  Mon Feb  4 03:45:23 2002
@@ -892,7 +892,8 @@
                        if ( ( comm_intf->bInterfaceClass == 0x02 )
                           && ( comm_intf->bInterfaceSubClass == 0x06 )
                           && ( comm_intf->bInterfaceProtocol == 0x00 ) ) {
-                               if ( comm_intf->bNumEndpoints == 1 ) {
+                               // if ( comm_intf->bNumEndpoints == 1 ) {
+                               if ( comm_intf->bNumEndpoints <= 1 ) {
                                        // Good, we found one, we will try this one
                                        // Fill in the structure...
                                        ether_dev->comm_interface = intf_num;

PS.
This is the kernel log messages:

 hub.c: USB new device connect on bus1/1, assigned device number 2
 Manufacturer: Sharp
 Product: SL Series
 usb.c: USB device 2 (vend/prod 0x4dd/0x8004) is not claimed by any active driver.
   Length              = 18
   DescriptorType      = 01
   USB version         = 2.00
   Vendor:Product      = 04dd:8004
   MaxPacketSize0      = 8
   NumConfigurations   = 2
   Device version      = 0.00
   Device Class:SubClass:Protocol = 02:00:00
     Communications class
 Configuration:
   bLength             =    9
   bDescriptorType     =   02
   wTotalLength        = 0049
   bNumInterfaces      =   02
   bConfigurationValue =   01
   iConfiguration      =   03
   bmAttributes        =   c0
   MaxPower            =    0mA
 
   Interface: 0
   Alternate Setting:  0
     bLength             =    9
     bDescriptorType     =   04
     bInterfaceNumber    =   00
     bAlternateSetting   =   00
     bNumEndpoints       =   00
     bInterface Class:SubClass:Protocol =   02:06:00
     iInterface          =   04
 
   Interface: 1
   Alternate Setting:  0
     bLength             =    9
     bDescriptorType     =   04
     bInterfaceNumber    =   01
     bAlternateSetting   =   00
     bNumEndpoints       =   00
     bInterface Class:SubClass:Protocol =   0a:00:00
     iInterface          =   06
   Alternate Setting:  1
     bLength             =    9
     bDescriptorType     =   04
     bInterfaceNumber    =   01
     bAlternateSetting   =   01
     bNumEndpoints       =   02
     bInterface Class:SubClass:Protocol =   0a:00:00
     iInterface          =   07
     Endpoint:
       bLength             =    7
       bDescriptorType     =   05
       bEndpointAddress    =   01 (out)
       bmAttributes        =   02 (Bulk)
       wMaxPacketSize      = 0040
       bInterval           =   00
     Endpoint:
       bLength             =    7
       bDescriptorType     =   05
       bEndpointAddress    =   82 (in)
       bmAttributes        =   02 (Bulk)
       wMaxPacketSize      = 0040
       bInterval           =   00
 Configuration:
   bLength             =    9
   bDescriptorType     =   02
   wTotalLength        = 0020
   bNumInterfaces      =   01
   bConfigurationValue =   02
   iConfiguration      =   08
   bmAttributes        =   c0
   MaxPower            =    0mA
 
   Interface: 0
   Alternate Setting:  0
     bLength             =    9
     bDescriptorType     =   04
     bInterfaceNumber    =   00
     bAlternateSetting   =   00
     bNumEndpoints       =   02
     bInterface Class:SubClass:Protocol =   ff:01:01
     iInterface          =   09
     Endpoint:
       bLength             =    7
       bDescriptorType     =   05
       bEndpointAddress    =   01 (out)
       bmAttributes        =   02 (Bulk)
       wMaxPacketSize      = 0040
       bInterval           =   00
     Endpoint:
       bLength             =    7
       bDescriptorType     =   05
       bEndpointAddress    =   82 (in)
       bmAttributes        =   02 (Bulk)
       wMaxPacketSize      = 0040
       bInterval           =   00

_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to