]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6624435b428d3d1dd3dabf210abce48a71a86ac3
treed93189eb1463638a84dc375a5667b9aeceab018c
parent9384c493c7539aab22aa9f7ade891748edc1d3c5
HID: input: fix uclogic tablets

commit 428eff7acc40 ("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: 428eff7acc40 ("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