Indeed in current systems udev uses module aliases for autoloading.
[...]
Looks like: "usb:vNpNd*dc*dsc*dp*ic3isc*ip*"
Oh, so we create a normal usb modalias entry anyway, not a custom
'usbhid:' one.
Why not just do something like
#define HID_DEVICE(vend, dev) \
.match_flags = USB_DEVICE_ID_MATCH_DEVICE | \
USB_DEVICE_ID_MATCH_INT_CLASS, \
.idVendor = (vend), \
.idProduct = (prod), \
.bInterfaceClass = USB_INTERFACE_CLASS_HID
(see linux/usb.h)
and use USB hotplugging?
Or do we plan to match against something else as well, such as hid
reports or something?
--
Anssi Hannula
--