All of lore.kernel.org
 help / color / mirror / Atom feed
* hid-pidff bug: fails to find all required reports of saitek gamepad
@ 2009-01-30 19:45 Dmitriy Geels
  2009-02-02 15:50 ` Anssi Hannula
  0 siblings, 1 reply; 41+ messages in thread
From: Dmitriy Geels @ 2009-01-30 19:45 UTC (permalink / raw)
  To: linux-input, anssi.hannula

Hello!

After reading HID/PID specs I understood, that Saitek gamepads doesn't
require any driver -- they are PID compliant. Then, after loading
usbhid with debug messages enabled, I saw this:
[  773.716917] usbhid:hid-pidff: starting pid init
[  773.716947] usbhid:hid-pidff: found usage 0x21 from field->logical
[  773.716965] usbhid:hid-pidff: found usage 0x5a from field->logical
[  773.716983] usbhid:hid-pidff: found usage 0x73 from field->logical
[  773.717000] usbhid:hid-pidff: found usage 0x6e from field->logical
[  773.717018] usbhid:hid-pidff: found usage 0x77 from field->logical
[  773.717036] usbhid:hid-pidff: found usage 0x96 from field->logical
[  773.717075] usbhid:hid-pidff: found usage 0x7d from field->logical
[  773.717127] usbhid:hid-pidff: found usage 0x7f from field->logical
[  773.717155] usbhid:hid-pidff: 4 missing
[  773.717176] usbhid:hid-pidff: reports not ok, aborting

Definitely, HID descriptor parser has problems, which stops driver
from reading all reports. Here is hid descriptor of gamepad:
http://dmitriy.geels.googlepages.com/HIDDescriptor.html

I added some more debug messages:
http://dmitriy.geels.googlepages.com/debug.patch
Then got this:

[  773.716917] usbhid:hid-pidff: starting pid init
[  773.716937] usbhid:hid-pidff: checking field->logical == 0x000f0021
[  773.716947] usbhid:hid-pidff: found usage 0x21 from field->logical
[  773.716956] usbhid:hid-pidff: checking field->logical == 0x000f005a
[  773.716965] usbhid:hid-pidff: found usage 0x5a from field->logical
[  773.716974] usbhid:hid-pidff: checking field->logical == 0x000f0073
[  773.716983] usbhid:hid-pidff: found usage 0x73 from field->logical
[  773.716992] usbhid:hid-pidff: checking field->logical == 0x000f006e
[  773.717000] usbhid:hid-pidff: found usage 0x6e from field->logical
[  773.717009] usbhid:hid-pidff: checking field->logical == 0x000f0077
[  773.717018] usbhid:hid-pidff: found usage 0x77 from field->logical
[  773.717027] usbhid:hid-pidff: checking field->logical == 0x000f0096
[  773.717036] usbhid:hid-pidff: found usage 0x96 from field->logical
[  773.717045] usbhid:hid-pidff: checking field->logical == 0x00ff0302
[  773.717055] usbhid:hid-pidff: checking hid->collection[11].usage ==
0x00ff0302
[  773.717066] usbhid:hid-pidff: checking field->logical == 0x000f007d
[  773.717075] usbhid:hid-pidff: found usage 0x7d from field->logical
[  773.717084] usbhid:hid-pidff: checking field->logical == 0x00000000
[  773.717093] usbhid:hid-pidff: checking hid->collection[18].usage ==
0x00000000
[  773.717118] usbhid:hid-pidff: checking field->logical == 0x000f007f
[  773.717127] usbhid:hid-pidff: found usage 0x7f from field->logical
[  773.717136] usbhid:hid-pidff: checking field->logical == 0x000f0025
[  773.717145] usbhid:hid-pidff: checking field->logical == 0x000f008b
[  773.717155] usbhid:hid-pidff: 4 missing
[  773.717162] usbhid:hid-pidff: 5 missing
[  773.717169] usbhid:hid-pidff: 7 missing
[  773.717176] usbhid:hid-pidff: reports not ok, aborting

25, 8b? these are inside of required 0xab and 0x89 reports, and 0x90
is just ignored...

I don't understand yet, how to fix this bug, so I'm posting this to
maillist with hope on someones help.

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

end of thread, other threads:[~2009-11-20 14:17 UTC | newest]

Thread overview: 41+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-30 19:45 hid-pidff bug: fails to find all required reports of saitek gamepad Dmitriy Geels
2009-02-02 15:50 ` Anssi Hannula
2009-02-02 18:29   ` Dmitriy Geels
2009-02-02 18:48     ` Dmitriy Geels
2009-02-07 12:28     ` Anssi Hannula
     [not found]       ` <78f5d6bf0902092146x2abaf45an79e4546e75a80356@mail.gmail.com>
2009-02-10  7:49         ` Dmitriy Geels
2009-02-10  7:49         ` Fwd: " Dmitriy Geels
2009-02-10 16:06         ` Anssi Hannula
2009-02-11  9:12           ` Dmitriy Geels
2009-02-11 16:27             ` Anssi Hannula
2009-02-12 18:06               ` Dmitriy Geels
2009-02-12 18:42                 ` Anssi Hannula
2009-02-13  8:33                   ` Dmitriy Geels
2009-02-13 19:43                     ` Anssi Hannula
     [not found]                       ` <78f5d6bf0902141125m1bf9ac00xb2b414e81d81b869@mail.gmail.com>
     [not found]                         ` <49972478.3060207@gmail.com>
2009-02-14 22:33                           ` Dmitriy Geels
2009-02-17 12:16                             ` Dmitriy Geels
2009-02-18 15:45                               ` Anssi Hannula
2009-02-19  6:56                                 ` Dmitriy Geels
     [not found]                                 ` <78f5d6bf0902182254v191cc485x62eb211baaddd36@mail.gmail.com>
     [not found]                                   ` <499D7C66.6090000@gmail.com>
2009-02-26 21:21                                     ` Dmitriy Geels
2009-02-27 16:24                                       ` Anssi Hannula
2009-03-02 18:41                                         ` Dmitriy Geels
2009-03-02 20:35                                           ` Anssi Hannula
2009-03-03  6:28                                             ` Dmitriy Geels
2009-03-03 18:35                                               ` Dmitriy Geels
2009-03-07 14:38                                                 ` Anssi Hannula
2009-03-08  5:18                                                   ` Dmitriy Geels
2009-03-08 10:16                                                     ` Anssi Hannula
2009-03-09 19:08                                                       ` Dmitriy Geels
2009-05-07 23:45                                                         ` Anssi Hannula
2009-05-07 23:57                                                           ` Anssi Hannula
     [not found]                                                             ` <78f5d6bf0906041227w3a58bde0u554a3d3336e17fa6@mail.gmail.com>
2009-06-06 12:14                                                               ` Anssi Hannula
2009-06-09  5:02                                                                 ` Dmitriy Geels
2009-06-09  6:09                                                                   ` Alek Du
2009-06-09  7:37                                                                     ` Dmitriy Geels
2009-06-11  9:38                                                                     ` Dmitriy Geels
2009-06-11 20:11                                                                       ` Dmitriy Geels
2009-07-09 17:41                                                                         ` Dmitriy Geels
2009-07-09 17:58                                                                           ` Anssi Hannula
2009-11-06  9:06                                                                             ` Dmitriy Geels
2009-11-09 12:00                                                                             ` Dmitriy Geels
2009-11-20 14:17                                                                               ` Dmitriy Geels

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.