simplify/change usb.usermap handling
Quoted 3 lines · Olaf Hering
Hi,
the are are currently 3 kind of maps for device drivers
That is, the user-mode driver databases are built by combining several categories of usbmap entries, for use by different kinds of install processes. The most significant are the "depmod" style installations (/lib/modules/*/modules.usbmap), and the user mode drivers (/etc/hotplug/usb/*.usermap, which is a forth type you omitted).
Quoted 1 line
All have a 'complicated' syntax.
There's only one syntax, as exported from "depmod". Unfortunately nobody contributed any tools to edit them (in Python or whatever); I think they'd be a help to developers.
I happen to think that adding a second syntax would be a significant change ... one we'll need at some point, like when we have a more formal way to install use usb drivers, and worth taking time on.
Seems to me this syntax is weaker than the current one (no versioning or class support), so you could solve your USR modem problem without new syntax (and all the support code + training).
- Dave
hotplug-beta/usb.simple_usermap line 10
Quoted 13 lines
hotplug-beta/usb.simple_usermap +10
-0@@ -0,0 +1,10 @@ +# syntax of this file: +# lines starting with # are ignored +# driver matching (values in hex): +# usb_module idVendor idProduct +# or +# usb/helperscript idVendor idProduct +# +# U.S. Robotics (3Com) 0082 OfficeConnect Analog Modem +# does not like the usbmodules --device /proc/bus/usb/x/y +acm 0x04c1 0x0082
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 4 lines · David Brownell
Seems to me this syntax is weaker than the current one (no versioning or class support), so you could solve your USR modem problem without new syntax (and all the support code + training).
look again, the old syntax is still there.
*.usermap + *.simple_usermap
I believe that most (but maybe not all) devices can be addressed with just the vendor+product match.
If my modem is fixable, no idea. Vojtec looked at it once and had no fix. That makes me wonder.
Quoted 19 lines
Quoted 15 lines
--- etc/hotplug-beta/usb.simple_usermap 2003-06-08
21:45:58.000000000 +0200
+++ etc/hotplug-beta/usb.simple_usermap 2003-06-08
21:45:42.000000000 +0200(quoted diff) +10
-0@@ -0,0 +1,10 @@ +# syntax of this file: +# lines starting with # are ignored +# driver matching (values in hex): +# usb_module idVendor idProduct +# or +# usb/helperscript idVendor idProduct +# +# U.S. Robotics (3Com) 0082 OfficeConnect Analog Modem +# does not like the usbmodules --device /proc/bus/usb/x/y +acm 0x04c1 0x0082
Signature · 11 lines
USB is for mice, FireWire is for men! ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel