I tested several versions of kernel 2.4-7 up and 2.5.1. The usb system 
has difficulty giving the right interface class for my Lexmark X83 
(scanner/copier/printer)  
The result " cat /proc/bus/usb/devices " is :
T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=043d ProdID=003d Rev= 0.01
S:  Product=Lexmark X83 Scan/Print/Copy
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 48mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=10(unk. ) Sub=01 Prot=00 Driver=(none)   
 *******
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
E:  Ad=83(I) Atr=03(Int.) MxPS=   1 Ivl=  8ms


However if I use the lsusb (v0.9, by Thomas Sailer), it gives the 
interface class as 16 Data

I added 0x in the source definition file 
(/linux_source_root/include/linux/usb.h) for those classes ) and it 
gives the result consistent with  "lsusb" output.
I:  If#= 0 Alt= 0 #EPs= 3 Cls=10(data ) Sub=01 Prot=00 Driver=(none)  
( from the kernel, this part of output is in hex format )

However, in the source code of lsusb, it has the same definition as 
linux_source_root/include/linux/usb.h

#define USB_CLASS_DATA            10
:
It may be strange how the code gets 16 when it is defined as "10" :?.


Anyway, shall it be defined as
#define USB_CLASS_DATA            10
or
#define USB_CLASS_DATA            0x10

?

The controller is intel  UHCI., and I tried both uhci.o and usb-uhci.o 
modules. The result is the same.
 
Thanks,

Tianjiao







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

Reply via email to