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)
committerPhil Elwell <pelwell@users.noreply.github.com>
Fri, 2 Aug 2019 10:47:10 +0000 (11:47 +0100)
commitdee43611031fb719b1472e14d9e90e176284d98c
treefb2ba0c20a4dd284c798a364ed626c75ed892abe
parent75f1d14cee8cfb1964cbda21a30cb030a632c3c2
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