aboutsummaryrefslogtreecommitdiff
path: root/rust/helpers.c
diff options
context:
space:
mode:
authorJason Gerecke <jason.gerecke@wacom.com>2024-09-09 13:32:08 -0700
committerJiri Kosina <jkosina@suse.com>2024-09-10 23:47:03 +0200
commit84aecf2d251a3359bc78b7c8e58f54b9fc966e89 (patch)
tree1cd00ca3a488e7dba426fa77157c848800b81ebe /rust/helpers.c
parent359673ea3a203611b4f6d0f28922a4b9d2cfbcc8 (diff)
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>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions