]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
HID: wacom: Send BTN_TOUCH in response to INTUOSP2_BT eraser contact
authorJason Gerecke <jason.gerecke@wacom.com>
Tue, 7 May 2019 18:53:20 +0000 (11:53 -0700)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit08a3c90f5f50f896fb596ec5b7ab8a8b97381a86
tree47238ed9c5448542fea6a56d2c88f8fbf250bd91
parentaa01c268ca153958ceaeea56af0e2c201bd207fc
HID: wacom: Send BTN_TOUCH in response to INTUOSP2_BT eraser contact

BugLink: https://bugs.launchpad.net/bugs/1838824
commit fe7f8d73d1af19b678171170e4e5384deb57833d upstream.

The Bluetooth reports from the 2nd-gen Intuos Pro have separate bits for
indicating if the tip or eraser is in contact with the tablet. At the
moment, only the tip contact bit controls the state of the BTN_TOUCH
event. This prevents the eraser from working as expected. This commit
changes the driver to send BTN_TOUCH whenever either the tip or eraser
contact bit is set.

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>
Reviewed-by: Aaron Skomra <aaron.skomra@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