Linux Input/HID development
 help / color / mirror / Atom feed
* [PATCH v3 0/2] HID: intel-ish-hid: Size the buffers for a later, larger response
@ 2026-12-05 16:07 Maoyi Xie via B4 Relay
  2026-12-05 16:07 ` [PATCH v3 1/2] HID: intel-ish-hid: Reallocate the descriptor buffers for a longer response Maoyi Xie via B4 Relay
  2026-12-05 16:07 ` [PATCH v3 2/2] HID: intel-ish-hid: Allocate hid_devices for MAX_HID_DEVICES entries Maoyi Xie via B4 Relay
  0 siblings, 2 replies; 3+ messages in thread
From: Maoyi Xie via B4 Relay @ 2026-12-05 16:07 UTC (permalink / raw)
  To: Jiri Kosina, Srinivas Pandruvada
  Cc: Maoyi Xie, linux-input, Benjamin Tissoires, Zhang Lixu

Both patches fix buffers in process_recv() that are allocated for the
first firmware response and then reused for later, larger ones.

Patch 2 now allocates MAX_HID_DEVICES entries. A count above
MAX_HID_DEVICES is left to the pending patch [1].

The series is now based on hid.git for-next. On for-7.4/upstream-fixes,
patch 2 conflicts with the older devm_kcalloc() call. I can send a
version for that branch if you prefer.

I used an LLM to help write the harness and these patches.

Changes in v3:
- Patch 1 is unchanged except for the tags from Zhang Lixu and
  Srinivas Pandruvada.
- Patch 2 uses MAX_HID_DEVICES instead of U8_MAX, as Zhang Lixu
  suggested.

v2: https://lore.kernel.org/linux-input/20261125090633.1385386-1-maoyixie.tju@gmail.com/
v1: https://lore.kernel.org/linux-input/20261123092816.2200718-1-maoyixie.tju@gmail.com/

[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: Allocate hid_devices for MAX_HID_DEVICES entries

 drivers/hid/intel-ish-hid/ishtp-hid-client.c | 27 ++++++++++++++++-----------
 1 file changed, 16 insertions(+), 11 deletions(-)
---
base-commit: 47d0d5ce3cfca63a04eabcbeef7086d06240ff97
change-id: 20261205-ishtp-hid-buffers-868d94ab6e81

Best regards,
-- 
Maoyi Xie <maoyixie.tju@gmail.com>



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

end of thread, other threads:[~2026-12-05 16:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-05 16:07 [PATCH v3 0/2] HID: intel-ish-hid: Size the buffers for a later, larger response Maoyi Xie via B4 Relay
2026-12-05 16:07 ` [PATCH v3 1/2] HID: intel-ish-hid: Reallocate the descriptor buffers for a longer response Maoyi Xie via B4 Relay
2026-12-05 16:07 ` [PATCH v3 2/2] HID: intel-ish-hid: Allocate hid_devices for MAX_HID_DEVICES entries Maoyi Xie via B4 Relay

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