I have a system with Linux 2.4.22, and hotplug 1.7. Usbnet is configured
as a module and not loaded at boot.
Without modifications, it won't recognise my Zaurus 5500. By editing
the flags in moudules.usbmap, I cam make it work.
The parameters in modules.usbmap for the Zaurus specify that the interface
values should be matched.
usbnet 0x0383 0x04dd 0x8004 0x0000 0x0000 0x00
0x00 0x00 0x0a 0x00 0x00
0x00003520
...
I think this is because drivers/usb/usbnet.c has
USB_DEVICE_ID_MATCH_INT_INFO set.
.match_flags = USB_DEVICE_ID_MATCH_INT_INFO
| USB_DEVICE_ID_MATCH_DEVICE,
.idVendor = 0x04DD,
.idProduct = 0x8004,
.bInterfaceClass = 0x0a,
.bInterfaceSubClass = 0x00,
.bInterfaceProtocol = 0x00,
.driver_info = (unsigned long) &zaurus_sl5x00_info,
On my system, /sbin/hotplug is not called with an INTERFACE= argument.
/sbin/hotplug: arguments (usb) env (PWD=/etc/hotplug DEVICE=/proc/bus/usb/002/002
ACTION=add DEBUG=yes OLDPWD=/ DEVFS=/proc/bus/usb TYPE=2/0/0 SHLVL=1 HOME=/
PATH=/bin:/sbin:/usr/sbin:/usr/bin PRODUCT=4dd/8004/0 _=/usr/bin/env)
Thus this never matches.
This module (usbnet) seems to be the only one in the usb group that
sets this flag. The macros in linux/usb.h only set one flag or another,
not two.
Am I missing something, or is this a bug?
Don Reid
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users