RE: How to match hid device to our hid driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Title: RE: How to match hid device to our hid driver

>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


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux