diff options
author | Jason Gerecke <jason.gerecke@wacom.com> | 2024-09-09 13:32:07 -0700 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.com> | 2024-09-10 23:47:03 +0200 |
commit | 359673ea3a203611b4f6d0f28922a4b9d2cfbcc8 (patch) | |
tree | e122ae4c3f38794258456ff2fb0159891877ee43 /drivers/gpu/drm/amd/amdgpu/amdgpu_gart.h | |
parent | 19591e1a8a2e9e8ff53cc3121e6650bbf02f8403 (diff) |
HID: wacom: Support sequence numbers smaller than 16-bit
The current dropped packet reporting assumes that all sequence numbers
are 16 bits in length. This results in misleading "Dropped" messages if
the hardware uses fewer bits. For example, if a tablet uses only 8 bits
to store its sequence number, once it rolls over from 255 -> 0, the
driver will still be expecting a packet "256". This patch adjusts the
logic to reset the next expected packet to logical_minimum whenever
it overflows beyond logical_maximum.
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 'drivers/gpu/drm/amd/amdgpu/amdgpu_gart.h')
0 files changed, 0 insertions, 0 deletions