From: Maoyi Xie <maoyixie.tju@gmail.com>
To: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>,
Jiri Kosina <jikos@kernel.org>
Cc: Benjamin Tissoires <bentiss@kernel.org>,
linux-input@vger.kernel.org, stable@vger.kernel.org
Subject: [PATCH 0/2] HID: intel-ish-hid: Reallocate buffers for a later, larger response
Date: Mon, 23 Nov 2026 17:28:14 +0800 [thread overview]
Message-ID: <20261123092816.2200718-1-maoyixie.tju@gmail.com> (raw)
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
next reply other threads:[~2026-11-23 9:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 9:28 Maoyi Xie [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261123092816.2200718-1-maoyixie.tju@gmail.com \
--to=maoyixie.tju@gmail.com \
--cc=bentiss@kernel.org \
--cc=jikos@kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=srinivas.pandruvada@linux.intel.com \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox