urb->status is -84 (EILSEQ)
Hi
I saw earlier mailing lists which says about the releasing the hid driver using "unbind",
so what I did here now is, " echo -n /sys/bus/usb/driver/usbhid/bind" from the command line
Then I compiled the usbmouse.c as it is whithout changing anything of that file. Now I got usbmouse.ko module. Next I inserted that module using insmod usbmouse.ko.
Then I went back to /sys/bus/usb/devices/ and given the command " echo -n 4-1.1.1 > /sys/bus/usb/drivers/usbmouse/bind
So now the mouse device is regsistered with usbmouse
cat /proc/bus/usb/devices/ gives the below out put
C:* #Ifs= 1 Cfg#= 1 Atr MxPwr0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls(HID ) Sub Prot Driver=usbmouse
But when I see the dmesg and cat /proc/kmsg mesagges continuosly usb_mouse_irq is getting called without even any mouse clicks
when I saw the status of urb->status it is -84 (EILSEQ)
and usbmon capture is showed below one
<URB Tag> <Timestamp> <Event Type> <Address>f02e5c80 150582594 S Ii:4:010:1 -115:8 4 <f02e5c80 150606583 C Ii:4:010:1 -84:8 0f02e5c80 150606601 S Ii:4:010:1 -115:8 4 <f02e5c80 150630578 C Ii:4:010:1 -84:8 0f02e5c80 150630594 S Ii:4:010:1 -115:8 4 <f02e5c80 150654576 C Ii:4:010:1 -84:8 0 ...
...
above message is continuously recieving after binding the device
But am able to reicieve the device details properly like vendor id , product id and all remaining things
Is any thing wrong am doing or my approach itself not correct.
Please suggest me in this regard what am missing in usbmouse.c to get it work properly.
Thanks & Regards
Kumar
Quoted 40 lines · Greg KH
From: Greg KH <[email protected]>
Subject: Re: bipassing USBHID driver with udev rule
To: "vijay manchala" <[email protected]>
Cc: [email protected]
Date: Monday, July 27, 2009, 8:24 PMQuoted 6 lines · vijay manchala
Hi,
I need some understanding regarding usbHID driver
I had one device called footpedal usb
device, when I connected that
Quoted 1 line
device to the HOST machine RHEL , default usbHID
driver is detecting
Quoted 4 lines
my footpedal i,e usbhid driver.
Actually
I dont want usbHID driver to detect foot pedaldevice, it would have
Quoted 1 line
been nice if there was just a nice simple way of
stopping the kernel
Quoted 1 line
usbHID driver from getting in the way, I want this
pedal detected by
Quoted 1 line
my own modified mouse driver.
Then just send a patch adding your device to the HID blacklist in the
driver. That will keep it from being loaded.good luck,
greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html