Re: [PATCH 1/1] HID: add have_special_driver hid module parameter

From
Nikolai Kondrashov <hidden>
Date
2012-04-01 19:33:35
Reply to
Jiri Kosina, 2012-03-30
Hi Jiri,

On 03/30/2012 04:49 PM, Jiri Kosina wrote:
On Mon, 20 Feb 2012, Nikolai Kondrashov wrote:
quoted
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'd very much prefer just using sysfs (bind/unbind) way of doing things if
possible for this purpose. What do you think?
I've tried this and it is not suitable. At least not in the current shape.

In short, two reasons:

1. The HID report descriptor is parsed only once, on first device probe and
   the resulting data is kept within device structure. It is not parsed
   again after unbind/bind, thus report_fixup of my driver is not called and
   the reports are getting interpreted according to the old one, rendering
   the device (partially) unusable.

2. The udev rules and scripts needed to make it work in a plug'n'play manner
   suitable for users are considerably more hacky than this solution.

I'd like to ask you to accept this patch for now.  Would it still be
possible to get this patch into 3.4? I promise to look for a better
solution. First step would probably be to fix rebinding.

It seems that you don't have much time recently to review/accept my patches.
Would you direct me to someone else who could do this and thus reduce your
load?

Thanks you.

Sincerely,
Nick
Thread (25 messages) 25 messages, 4 authors, last reply 2012-04-08
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help