Commit 92b1f45
committed
HID: wacom: Remove static WACOM_PKGLEN_MAX limit
JIRA: https://issues.redhat.com/browse/RHEL-102058
Upstream Status: since v6.15
commit 5e013ad
Author: Jason Gerecke <jason.gerecke@wacom.com>
Date: Mon Mar 3 11:55:18 2025 -0800
HID: wacom: Remove static WACOM_PKGLEN_MAX limit
Rather than memcpy every packet that we receive from HID into our own
local fixed-size array, we can just access the data directly through
the original pointer. While we're at it, remove the few other places
that assume a fixed maximum packet size and make them dynamic (in
particular: temporary buffers created by the wacom_wac_queue_flush and
wacom_intuos_bt_process_data functions; and the pen_fifo FIFO).
To ensure pen_fifo allocation has access to the maximum used packet
length, this commit also moves the function call to occur a little
later in the probe process.
Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>1 parent 43f3bf2 commit 92b1f45
3 files changed
+27
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
74 | 75 | | |
75 | 76 | | |
76 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
77 | 86 | | |
78 | 87 | | |
79 | 88 | | |
80 | 89 | | |
81 | 90 | | |
| 91 | + | |
| 92 | + | |
82 | 93 | | |
83 | 94 | | |
84 | 95 | | |
| |||
158 | 169 | | |
159 | 170 | | |
160 | 171 | | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | 172 | | |
165 | 173 | | |
166 | 174 | | |
167 | | - | |
| 175 | + | |
168 | 176 | | |
169 | 177 | | |
170 | 178 | | |
| |||
1286 | 1294 | | |
1287 | 1295 | | |
1288 | 1296 | | |
| 1297 | + | |
1289 | 1298 | | |
1290 | 1299 | | |
1291 | 1300 | | |
| |||
1296 | 1305 | | |
1297 | 1306 | | |
1298 | 1307 | | |
1299 | | - | |
| 1308 | + | |
1300 | 1309 | | |
1301 | 1310 | | |
1302 | 1311 | | |
| |||
2350 | 2359 | | |
2351 | 2360 | | |
2352 | 2361 | | |
2353 | | - | |
2354 | | - | |
2355 | 2362 | | |
2356 | 2363 | | |
2357 | 2364 | | |
2358 | 2365 | | |
| 2366 | + | |
| 2367 | + | |
| 2368 | + | |
| 2369 | + | |
2359 | 2370 | | |
2360 | 2371 | | |
2361 | 2372 | | |
| |||
2819 | 2830 | | |
2820 | 2831 | | |
2821 | 2832 | | |
2822 | | - | |
2823 | | - | |
2824 | | - | |
2825 | | - | |
2826 | 2833 | | |
2827 | 2834 | | |
2828 | 2835 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1201 | 1201 | | |
1202 | 1202 | | |
1203 | 1203 | | |
1204 | | - | |
| 1204 | + | |
1205 | 1205 | | |
1206 | 1206 | | |
1207 | 1207 | | |
1208 | | - | |
1209 | | - | |
1210 | 1208 | | |
1211 | 1209 | | |
1212 | 1210 | | |
| |||
1230 | 1228 | | |
1231 | 1229 | | |
1232 | 1230 | | |
1233 | | - | |
| 1231 | + | |
1234 | 1232 | | |
| 1233 | + | |
| 1234 | + | |
1235 | 1235 | | |
1236 | 1236 | | |
1237 | 1237 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | 10 | | |
14 | 11 | | |
15 | 12 | | |
| |||
277 | 274 | | |
278 | 275 | | |
279 | 276 | | |
280 | | - | |
| 277 | + | |
281 | 278 | | |
282 | 279 | | |
283 | 280 | | |
| |||
341 | 338 | | |
342 | 339 | | |
343 | 340 | | |
344 | | - | |
| 341 | + | |
345 | 342 | | |
346 | 343 | | |
347 | 344 | | |
| |||
0 commit comments