HID: quirks: fix RetroUSB.com devices
authorNic Soudée <nsoudee@gmail.com>
Thu, 6 Dec 2018 16:59:25 +0000 (11:59 -0500)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Fri, 7 Dec 2018 13:12:34 +0000 (14:12 +0100)
commit868613f1c0ccf7b832f38b48b18cca31cdeb3d26
treef93d9748c23409e4f78567b3af83b1b33bec950a
parent4050207485e47e00353e87f2fe2166083e282688
HID: quirks: fix RetroUSB.com devices

SNES RetroPort and RetroPad register only 4 gamepad buttons
when they should register all 8 buttons. This is described here:

https://ask.fedoraproject.org/en/question/128102

This is happening because of:

Commit 190d7f02ce8e ("HID: input: do not increment usages when
    duplicate is found")

Here, I add the quirk HID_QUIRK_INCREMENT_USAGE_ON_DUPLICATE
(created for backward compatibility with the change in 190d7f02ce8e)
for the two products.

Tested with both RetroPort and RetroPad.

Cc: stable@vger.kernel.org # v4.18+
Signed-off-by: Nic Soudée <nsoudee@gmail.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
drivers/hid/hid-ids.h
drivers/hid/hid-quirks.c