HID: intel-ish-hid: Reallocate buffers for a later, larger response
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | HID: intel-ish-hid: Reallocate the descriptor buffers for a longer responsedrivers/ | +11 | 0 replies | |
| 2/2 | HID: intel-ish-hid: Reallocate hid_devices for a larger device countdrivers/ | +12 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] HID: intel-ish-hid: Reallocate buffers for a later, larger response
process_recv() sizes the descriptor buffers of each device and the hid_devices array by the first firmware response. It then reuses them for later, larger responses. Patch 1 fixes the descriptor buffers and patch 2 fixes hid_devices.
A pending patch [1] limits hid_dev_count to MAX_HID_DEVICES, and it is still needed with this series. Patch 2 touches the lines next to that patch. If that patch goes in first, I can rebase patch 2 on it.
The series is based on hid.git for-7.4/upstream-fixes. In mainline, patch 2 conflicts with the treewide devm_kmalloc_obj() conversion (4dd10fbbeb9c), and taking the lines of patch 2 resolves it. I can send a version for mainline if you prefer.
I used an LLM to help write the harness and these patches.
[1] https://lore.kernel.org/all/[email protected]/
Maoyi Xie (2):
HID: intel-ish-hid: Reallocate the descriptor buffers for a longer
response
HID: intel-ish-hid: Reallocate hid_devices for a larger device count
drivers/hid/intel-ish-hid/ishtp-hid-client.c | 41 +++++++++++--------- 1 file changed, 23 insertions(+), 18 deletions(-)
base-commit: 10bc1d627c297097cfdc099377f8a13efdfffd86
Signature · 1 line
2.34.1