# Re: \[PATCH 1/1\] HID: add have\_special\_driver hid module parameter

- From: David Herrmann \<hidden\>
- Date: 2012-03-30 23:03:39 
- List: linux-input
- Page: https://ratatoskr.run/linux-input/2012/03/8919178
- Thread: https://ratatoskr.run/linux-input/2012/02/8918893/t.md

```text
Hi Nikolai

On Fri, Mar 30, 2012 at 5:22 PM, Nikolai Kondrashov [ref] wrote:
> Hi Jiri,
>
> On Fri, Mar 30, 2012 at 4:49 PM, Jiri Kosina [ref] wrote:
>> On Mon, 20 Feb 2012, Nikolai Kondrashov wrote:
>>> Add "have_special_driver" hid module parameter - a list of additional HID
>>> devices which have specialized driver on HID bus. Needed to support out-of-tree
>>> HID drivers.
>>
>> I find this a little bit hackish :) How about for example the userspace
>> transport drivers for Bluetooth-LE that are currently in the works?
>
> I like the idea and the implementation seems good, but I can't see how it
> is related to the task of having out-of-tree HID drivers, sorry.
>
>> I'd very much prefer just using sysfs (bind/unbind) way of doing things if
>> possible for this purpose. What do you think?
>
> To my shame I must admit I didn't know or forgot of this mechanism. Although
> I did some research asking kernel developers at work about possibility to
> rebind a different driver. They either forgot about it at the time too, or I
> didn't ask properly.
>
> I think, I can craft an udev rule which will detach a tablet from the
> generic HID driver and attach it to my driver through sysfs.
>
> Please forget about this patch for now, I will resume bothering you in case
> it's not possible or not appropriate :)

Rebinding works perfectly well for me. I use it all the time when
testing HID drivers. Furthermore, there is a dynid-implementation in
the kernel so when hacking on something like this I'd recommend using
this. It would also remove the hard limit that you currently have.

> Thanks!
>
> Sincerely,
> Nick

Regards
David
```
