Re: USB driver (hello usb driver)

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

 



On Mon, Oct 25, 2010 at 08:57:49PM +0530, Bond wrote:
> On Sun, Oct 24, 2010 at 9:24 PM, Greg KH <greg@xxxxxxxxx> wrote:
> >
> > Yes, look at the hid driver blacklist.
> >
> >> so that it checks my driver and if it doesn't find it, then pass it to
> >> the usbhid?
> >
> > If your driver is loaded first, yes, you can do that.
> >
> > You can unbind the device from the hid driver by hand through sysfs and
> > then load your driver for testing.
> >
> Okay, i found my device in /dev/bus/usb/devices/usb6/6-1. When I nano
> idVendor, i see the correct vendor, and when i nano idProduct, i see
> the correct product. So it's definately there, but I think the problem
> is that usbhid is catching it before my module does. how would i
> unload the device and test like you stated?

Use the unbind file in sysfs for the usb hid driver to unbind the device
from the driver.

good luck,

greg k-h

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[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