diff options
| author | Zhang Lixu <lixu.zhang@intel.com> | 2025-10-17 10:22:14 +0800 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.com> | 2025-10-17 17:47:53 +0200 |
| commit | 3cbf6544b0af61e8f9201f2c4c82fdaf2b5f3dd3 (patch) | |
| tree | 5155c22da537b5e1d4fd9472d339ce12bc80739f /tools/docs/check-variable-fonts.py | |
| parent | 011aa2aa2c4c2b3356c32f195f306df6e177ac38 (diff) | |
HID: intel-ishtp-hid: Clear suspended flag only after connected on resume
When resuming from suspend-to-RAM or hibernate, the ISH firmware is powered
on from D3, causing all previous client connections between the firmware
and driver to be lost. Although the underlying ishtp bus driver initiates a
client reconnection flow, this process is asynchronous. As a result, when
hid_ishtp_cl_resume_handler() is executed, the connection may not have been
re-established yet. Clearing the suspended flag prematurely in this
scenario can lead to a timeout when the upper-layer HID sensor driver set
feature during resume.
To prevent such timeouts, only clear the suspended flag after confirming
that the connection state is ISHTP_CL_CONNECTED.
Signed-off-by: Zhang Lixu <lixu.zhang@intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/docs/check-variable-fonts.py')
0 files changed, 0 insertions, 0 deletions
