hid: usb: Add device quirks for Freeway Airmouse T3 and MX3
authorJonathan Bell <jonathan@raspberrypi.org>
Thu, 1 Aug 2019 15:41:20 +0000 (16:41 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:03:56 +0000 (16:03 +0000)
commitd82b86127231fe6968c2c9c240be8640b3d7b4a7
tree2e9fffda4036d165fa7eef34e7e52fa8b1f2cd8b
parent1132a94292445454d9490ff82ac408158bb858a0
hid: usb: Add device quirks for Freeway Airmouse T3 and MX3

These wireless mouse/keyboard combo remote control devices specify
multiple "wheel" events in their report descriptors. The wheel events
are incorrectly defined and apparently map to accelerometer data, leading
to spurious mouse scroll events being generated at an extreme rate when
the device is moved.

As a workaround, use HID_QUIRK_INCREMENT_USAGE_ON_DUPLICATE to mask
feeding the extra wheel events to the input subsystem.

See: https://github.com/raspberrypi/firmware/issues/1189

Signed-off-by: Jonathan Bell <jonathan@raspberrypi.org>
drivers/hid/hid-ids.h
drivers/hid/hid-quirks.c