]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
HID: wacom: Sync INTUOSP2_BT touch state after each frame if necessary
authorJason Gerecke <jason.gerecke@wacom.com>
Tue, 7 May 2019 18:53:22 +0000 (11:53 -0700)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit9fd8f9c5cdcf99c8f25643626baa469b98ea2aef
treec62491cb886e3a87365874c4fbda26d4233f8304
parent73f8dd92d18287b9f386980a0ceb94f7ec94c1c4
HID: wacom: Sync INTUOSP2_BT touch state after each frame if necessary

BugLink: https://bugs.launchpad.net/bugs/1838824
commit 69dbdfffef20c715df9f381b2cee4e9e0a4efd93 upstream.

The Bluetooth interface of the 2nd-gen Intuos Pro batches together four
independent "frames" of finger data into a single report. Each frame
is essentially equivalent to a single USB report, with the up-to-10
fingers worth of information being spread across two frames. At the
moment the driver only calls `input_sync` after processing all four
frames have been processed, which can result in the driver sending
multiple updates for a single slot within the same SYN_REPORT. This
can confuse userspace, so modify the driver to sync more often if
necessary (i.e., after reporting the state of all fingers).

Fixes: 4922cd26f03c ("HID: wacom: Support 2nd-gen Intuos Pro's Bluetooth classic interface")
Cc: <stable@vger.kernel.org> # 4.11+
Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/hid/wacom_wac.c