usbhid.quirks in uboot only uses one quirk

Discussion of keyboards, gamepads, joysticks and other input related peripherals.
ubuntuyou
Posts: 2
Joined: Tue Sep 08, 2020 6:46 pm

usbhid.quirks in uboot only uses one quirk

Unread post by ubuntuyou »

I have two different controllers, each requiring a usbhid.quirk. I've added both in a single line to u-boot.txt as prescribed but only the second one is used. I've tried switching them and get the same result where one controller works fully and the other only partially.

The two controllers in question are:
F000:0003
F000:00F1

Is it possible to have two different quirks going at the same time? Also, what is the third hex parameter in usbhid.quirks=[vendor id]:[device id]:[what is this parameter?] Thanks.
paulbnl
Core Developer
Posts: 217
Joined: Sun May 24, 2020 8:48 pm
Has thanked: 50 times
Been thanked: 301 times

Re: usbhid.quirks in uboot only uses one quirk

Unread post by paulbnl »

This works with two quirks:

Code: Select all

v=loglevel=4 usbhid.quirks=0xF000:0x0003:0x100000,0xF000:0x00F1:0x100000
These quirks for RetroUSB are integrated in the kernel 0908 release so the quirks in u-boot.txt should not be needed anymore hopefully.

The third parameter is for the quirks type. In this case HID_QUIRK_INCREMENT_USAGE_ON_DUPLICATE
ubuntuyou
Posts: 2
Joined: Tue Sep 08, 2020 6:46 pm

Re: usbhid.quirks in uboot only uses one quirk

Unread post by ubuntuyou »

Thank you. I've had a hard time finding documentation on quirks and the only explanation i found said to input the "usbhid.quirks=..." entry twice rather than separate by a comma.
Post Reply