Commit 84aecf2
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 <[email protected]>
Tested-by: Joshua Dickens <[email protected]>
Fixes: 6d09085 ("HID: wacom: Adding Support for new usages")
Signed-off-by: Jiri Kosina <[email protected]>1 parent 359673e commit 84aecf2
2 files changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2386 | 2386 | | |
2387 | 2387 | | |
2388 | 2388 | | |
| 2389 | + | |
| 2390 | + | |
| 2391 | + | |
2389 | 2392 | | |
2390 | 2393 | | |
2391 | 2394 | | |
| |||
2510 | 2513 | | |
2511 | 2514 | | |
2512 | 2515 | | |
2513 | | - | |
| 2516 | + | |
| 2517 | + | |
2514 | 2518 | | |
2515 | 2519 | | |
2516 | 2520 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
329 | | - | |
| 329 | + | |
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
| |||
0 commit comments