]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
HID: wacom: Do not warn about dropped packets for first packet
authorJason Gerecke <jason.gerecke@wacom.com>
Mon, 9 Sep 2024 20:32:08 +0000 (13:32 -0700)
committerJiri Kosina <jkosina@suse.com>
Tue, 10 Sep 2024 21:47:03 +0000 (23:47 +0200)
commit84aecf2d251a3359bc78b7c8e58f54b9fc966e89
tree1cd00ca3a488e7dba426fa77157c848800b81ebe
parent359673ea3a203611b4f6d0f28922a4b9d2cfbcc8
HID: wacom: Do not warn about dropped packets for first packet

The driver currently assumes that the first sequence number it will see
is going to be 0. This is not a realiable assumption and can break if,
for example, the tablet has already been running for some time prior to
the kernel driver connecting to the device. This commit initializes the
expected sequence number to -1 and will only print the "Dropped" warning
the it has been updated to a non-negative value.

Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Tested-by: Joshua Dickens <joshua.dickens@wacom.com>
Fixes: 6d09085b38e5 ("HID: wacom: Adding Support for new usages")
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/wacom_wac.c
drivers/hid/wacom_wac.h