Linux Input/HID development
 help / color / mirror / Atom feed
* [PATCH 0/2] HID: intel-ish-hid: Reallocate buffers for a later, larger response
@ 2026-11-23  9:28 Maoyi Xie
  2026-11-23  9:28 ` [PATCH 1/2] HID: intel-ish-hid: Reallocate the descriptor buffers for a longer response Maoyi Xie
  2026-11-23  9:28 ` [PATCH 2/2] HID: intel-ish-hid: Reallocate hid_devices for a larger device count Maoyi Xie
  0 siblings, 2 replies; 5+ messages in thread
From: Maoyi Xie @ 2026-11-23  9:28 UTC (permalink / raw)
  To: Srinivas Pandruvada, Jiri Kosina; +Cc: Benjamin Tissoires, linux-input, stable

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/tencent_130404E5ABECE66E8D0E70D8E6892C751C0A@qq.com/

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
-- 
2.34.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-23  9:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23  9:28 [PATCH 0/2] HID: intel-ish-hid: Reallocate buffers for a later, larger response Maoyi Xie
2026-11-23  9:28 ` [PATCH 1/2] HID: intel-ish-hid: Reallocate the descriptor buffers for a longer response Maoyi Xie
2026-11-23  9:42   ` sashiko-bot
2026-11-23  9:28 ` [PATCH 2/2] HID: intel-ish-hid: Reallocate hid_devices for a larger device count Maoyi Xie
2026-11-23  9:50   ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox