Re: [PATCH v10 4/6] HID: intel-thc-hid: intel-ipts: add the HID device
From: Emfox Zhou
Date: Wed Dec 02 2026 - 10:42:30 EST
On Wed, 2 Dec 2026, Xu, Even wrote:
> Why all buffers are need to be resized?
The sizes come from the configuration block, which is only readable after
the controller is out of reset in thc_ipts_port_start(), so probe cannot
know them and the buffers are allocated on the first start.
thc_ipts_resize() only grows, so a normal start is a few comparisons and
no allocation; it runs again on every start because a resume may report
larger limits. All four follow max_rx/max_tx: desc and feature hold
replies that arrive through the receive engine, so they are bounded by
max_rx as well.
Your other comments on this series are addressed in the v11 I am about to
post.
Thanks,
Emfox