Re: [PATCH v2 1/2] HID: wacom: Properly report negative values from Intuos Pro 2 Bluetooth

From
Jiri Kosina <jikos@kernel.org>
Date
2017-09-06 09:02:03
Also in
stable
Reply to
Jason Gerecke, 2017-08-30
On Wed, 30 Aug 2017, Jason Gerecke wrote:
The wacom driver's IRQ handler for Bluetooth reports from the 2nd-gen
Intuos Pro does not correctly process negative numbers. Values for
tilt and rotation (which can go negative) are instead interpreted as
unsigned and so jump to very large values when the data should be
negative. This commit properly casts the data to ensure we report
negative numbers when necessary.

Fixes: 4922cd2 ("HID: wacom: Support 2nd-gen Intuos Pro's Bluetooth classic interface")
Cc: <redacted> # v4.11
Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Both patches applied to for-4.14/upstream-fixes.

-- 
Jiri Kosina
SUSE Labs
Thread (6 messages) 6 messages, 3 authors, last reply 2017-09-06
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help