OSDN Git Service

HID: input: fix uclogic tablets
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Mon, 22 Aug 2022 06:22:47 +0000 (08:22 +0200)
committerJiri Kosina <jkosina@suse.cz>
Thu, 25 Aug 2022 09:46:55 +0000 (11:46 +0200)
commit8db8be9cfc89935c97d791c7e6264e710a7e8a56
treed93189eb1463638a84dc375a5667b9aeceab018c
parent750ec977288d96e9a11424e3507ede097af732c4
HID: input: fix uclogic tablets

commit 87562fcd1342 ("HID: input: remove the need for HID_QUIRK_INVERT")
made the assumption that it was the only one handling tablets and thus
kept an internal state regarding the tool.

Turns out that the uclogic driver has a timer to release the in range
bit, effectively making hid-input ignoring all in range information
after the very first one.

Fix that by having a more rationale approach which consists in forwarding
every event and let the input stack filter out the duplicates.

Reported-by: Stefan Hansson <newbie13xd@gmail.com>
Fixes: 87562fcd1342 ("HID: input: remove the need for HID_QUIRK_INVERT")
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-input.c