>so my problem is that when the two are both matched, how to let the
>device match to our specific driver and not match to default generic-usb
>driver?

Hi,

Assuming that your kernel is using hid driver, You have two options

  1. unbind the hid driver from the device dynamically.  To do that
    a. go to  /sys/bus/usb/drivers/usbhid
    b. issue ls, you should be able to find usb hid devices id there (in my 
case it is '5-1:1.0')
    c. issue the command echo -n 'usb device id' > unbind (example echo -n 
"5-1:1.0" > unbind)
    d. Now insert your driver and it should bind to the device.


  2. The second option is straight forward. Deselect hid from the kernel 
configuration and rebuild your kernel..


HTH,
Sudheer

Reply via email to