All of lore.kernel.org
 help / color / mirror / Atom feed
* HID generic-bluetooth driver
@ 2011-05-08 10:16 David Herrmann
  2011-05-08 11:52 ` Christoph Fritz
  0 siblings, 1 reply; 4+ messages in thread
From: David Herrmann @ 2011-05-08 10:16 UTC (permalink / raw)
  To: linux-input, padovan, David Herrmann

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: HID generic-bluetooth driver
  2011-05-08 10:16 HID generic-bluetooth driver David Herrmann
@ 2011-05-08 11:52 ` Christoph Fritz
  2011-05-08 12:20   ` David Herrmann
  0 siblings, 1 reply; 4+ messages in thread
From: Christoph Fritz @ 2011-05-08 11:52 UTC (permalink / raw)
  To: David Herrmann; +Cc: linux-input, padovan

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: HID generic-bluetooth driver
  2011-05-08 11:52 ` Christoph Fritz
@ 2011-05-08 12:20   ` David Herrmann
  2011-05-08 15:02     ` Christoph Fritz
  0 siblings, 1 reply; 4+ messages in thread
From: David Herrmann @ 2011-05-08 12:20 UTC (permalink / raw)
  To: Christoph Fritz; +Cc: linux-input, padovan

On Sun, May 8, 2011 at 1:52 PM, Christoph Fritz
<chf.fritz@googlemail.com> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: HID generic-bluetooth driver
  2011-05-08 12:20   ` David Herrmann
@ 2011-05-08 15:02     ` Christoph Fritz
  0 siblings, 0 replies; 4+ messages in thread
From: Christoph Fritz @ 2011-05-08 15:02 UTC (permalink / raw)
  To: David Herrmann; +Cc: linux-input, padovan

On Sun, May 08, 2011 at 02:20:40PM +0200, David Herrmann wrote:
> On Sun, May 8, 2011 at 1:52 PM, Christoph Fritz
> <chf.fritz@googlemail.com> 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?

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-05-08 15:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-08 10:16 HID generic-bluetooth driver David Herrmann
2011-05-08 11:52 ` Christoph Fritz
2011-05-08 12:20   ` David Herrmann
2011-05-08 15:02     ` Christoph Fritz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.