Skip to contentSkip to conversation

multi-input quirk and skip output reports quirk

DISCUSSION Sam Liddicott 2 participants 2 messages Apr 5, 2008 HID

lore
Share & tools
lore
#1 lore raw
In reply to Sam Liddicott
Quoted 4 lines · Sam Liddicott

I'm all for setting quirks dynamically from user space during the plug event, as the delay between posting a patch and having it appear in distro of choice can be well over a year which is too long to remember and too long to be useful.

This can be done by using a 'quirks' module parameter to usbhid.

Quoted 5 lines

I do remember that there were two quirks set for the same brand of dual controller and I copied them both to the quad controller. I was asked to check if both quirks were actually needed, I still haven't had the required couple of hours to rebuild my kernel to do this and it became simpler to use the quad controller as a single controller.

You don't have to rebuild if you have a kernel that supports dynamic quirks for usbhid.

Signature · 2 lines
Jiri Kosina
SUSE Labs
#0 lore raw

I'm afraid I don't recognize that quirk name.

I'm all for setting quirks dynamically from user space during the plug event, as the delay between posting a patch and having it appear in distro of choice can be well over a year which is too long to remember and too long to be useful.

I do remember that there were two quirks set for the same brand of dual controller and I copied them both to the quad controller. I was asked to check if both quirks were actually needed, I still haven't had the required couple of hours to rebuild my kernel to do this and it became simpler to use the quad controller as a single controller.

I still feel guilty this but not guilty enough. Sorry.

Sam

-----Original Message-----
From: Jiri Kosina <[email protected]>
Sent: 04 April 2008 15:51
To: Anssi Hannula <[email protected]>
Cc: [email protected]; Sam Liddicott <[email protected]>
Subject: Re: multi-input quirk and skip output reports quirk

Quoted 11 lines · Anssi Hannula
Quoted 11 lines
Quoted 11 lines
Quoted 8 lines
Quoted 6 lines

I've encountered another multi-input device that needs the skip output reports quirk (as it contains force feedback output reports), 0925:8866. However, maybe we should use another approach, dropping HID_QUIRK_SKIP_OUTPUT_REPORTS. Why not just *not* register the input device for that report in case the report didn't contain anything that was mapped by hidinput_configure_usage(), in hidinput_connect()?

as long as we still have the possibility to see the coming data in debug mode, I don't have objection to that.

Okay.

Quoted 1 line

Are you going to make that patch?

Not right now, maybe in a few weeks.

Quoted 8 lines
Quoted 4 lines

I will meanwhile queue the patch below, ok? After the hidinput_connect() is refactored to ignore devices for which the mappings haven't been established, we could then remove all the devices for which we have HID_QUIRK_SKIP_OUTPUT_REPORTS altogether.

Ok.

Quoted 2 lines

BTW, do you happen to have any idea whether the Quad joypad needs this quirk too?

No, but I guess it is quite probable.

I have added Sam (who reported the need of the quirk for Quad joypad) to CC.

Sam?

Thanks,

Signature · 2 lines
Jiri Kosina
SUSE Labs