HID generic-bluetooth driver

4 messages, 2 authors, 2011-05-08 · open the first message on its own page

HID generic-bluetooth driver

From: David Herrmann <hidden>
Date: 2011-05-08 10:16:07

Hi

I am currently working on a bluetooth HID device driver during GSoC
this summer and have a small problem. My dummy HID-driver does not get
bound on new devices. My dummy driver is available at:
https://github.com/dvdhrm/xwiimote/blob/master/driver/src/hid-nintendo.c

If a new bluetooth device with exactly these PID/VID values connects,
the generic-bluetooth HID driver gets bound instead of my hid-nintendo
driver. I checked /dev/hidrawX and it returns the same PID/VID values
as I specified in my driver so these are correct.
Also, if I use /sys/class/hid/drivers/generic-bluetooth/unbind and
.../nintendo/bind I can bind my driver manually to that device.

What can I do to lower the priority of generic-bluetooth or to push my
driver in front of generic-bluetooth?

Regards
David

Re: HID generic-bluetooth driver

From: Christoph Fritz <hidden>
Date: 2011-05-08 11:52:38

On Sun, 2011-05-08 at 12:16 +0200, David Herrmann wrote:
Hi

I am currently working on a bluetooth HID device driver during GSoC
this summer and have a small problem. My dummy HID-driver does not get
bound on new devices. My dummy driver is available at:
https://github.com/dvdhrm/xwiimote/blob/master/driver/src/hid-nintendo.c

If a new bluetooth device with exactly these PID/VID values connects,
the generic-bluetooth HID driver gets bound instead of my hid-nintendo
driver. I checked /dev/hidrawX and it returns the same PID/VID values
as I specified in my driver so these are correct.
Also, if I use /sys/class/hid/drivers/generic-bluetooth/unbind and
.../nintendo/bind I can bind my driver manually to that device.

What can I do to lower the priority of generic-bluetooth or to push my
driver in front of generic-bluetooth?
Hi David,

 you can add it to hid_have_special_driver[] (drivers/hid/hid-core.c).

Thanks,
 -- chf

Re: HID generic-bluetooth driver

From: David Herrmann <hidden>
Date: 2011-05-08 12:20:41

On Sun, May 8, 2011 at 1:52 PM, Christoph Fritz
[off-list ref] wrote:
 you can add it to hid_have_special_driver[] (drivers/hid/hid-core.c).
Since I cannot see any MODULE_DEVICE_TABLE() entry there, I guess I
can't extend this table on runtime?

Adding my device there helped. Thank you.
Thanks,
 -- chf
Thanks
David
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Re: HID generic-bluetooth driver

From: Christoph Fritz <hidden>
Date: 2011-05-08 15:11:03

On Sun, May 08, 2011 at 02:20:40PM +0200, David Herrmann wrote:
On Sun, May 8, 2011 at 1:52 PM, Christoph Fritz
[off-list ref] wrote:
quoted
 you can add it to hid_have_special_driver[] (drivers/hid/hid-core.c).
Since I cannot see any MODULE_DEVICE_TABLE() entry there, I guess I
can't extend this table on runtime?
No you can't extend this table at runtime.
Adding my device there helped. Thank you.
You are welcome.

 happy hacking,
  -- chf

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help