HID: multitouch: enable multi-input as a quirk for some devices
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Tue, 26 May 2020 15:07:17 +0000 (17:07 +0200)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Wed, 27 May 2020 09:45:06 +0000 (11:45 +0200)
commit40d5bb87377a599d0405af765290f28aaa6abb1e
tree2f4b66d433ccf59e3fefc55e4b209817c3fb4ecc
parent47cf1b422e6093aee2a3e55d5e162112a2c69870
HID: multitouch: enable multi-input as a quirk for some devices

Two touchpad/trackstick combos are currently not behaving properly.
They define a mouse emulation collection, as per Win8 requirements,
but also define a separate mouse collection for the trackstick.

The way the kernel currently treat the collections is that it
merges both in one device. However, given that the first mouse
collection already defines X,Y and left, right buttons, when
mapping the events from the second mouse collection, hid-multitouch
sees that these events are already mapped, and simply ignores them.

To be able to report events from the tracktick, add a new quirked
class for it, and manually add the 2 devices we know about.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=207235
Cc: stable@vger.kernel.org
Tested-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
drivers/hid/hid-multitouch.c