linux/drivers/hid/intel-ish-hid
Zhang Lixu 8931f7b279 HID: intel-ish-ipc: Remove redundant ready check after timeout function
timed_wait_for_timeout() internally checks for ish_is_input_ready() and
ishtp_fw_is_ready() based on the provided parameters. If
timed_wait_for_timeout() returns 0, it indicates the status is ready. In
rare cases, another thread may send a message immediately after
timed_wait_for_timeout() returns, causing a subsequent ish_is_input_ready()
check to fail. Since the return value of timed_wait_for_timeout() is
sufficient to determine readiness, the additional ready check is
unnecessary and may introduce issues.

This patch removes the redundant check and relies solely on the return
value of timed_wait_for_timeout().

Fixes: ae02e5d40d ("HID: intel-ish-hid: ipc layer")
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>
2025-09-12 17:22:41 +02:00
..
ipc HID: intel-ish-ipc: Remove redundant ready check after timeout function 2025-09-12 17:22:41 +02:00
ishtp HID: intel-ish-hid: Increase ISHTP resume ack timeout to 300ms 2025-08-12 14:49:14 +02:00
Kconfig HID: intel-thc: fix CONFIG_HID dependency 2025-02-03 10:56:43 +01:00
Makefile
ishtp-fw-loader.c Merge branch 'for-6.13/core' into for-linus 2024-11-18 21:58:55 +01:00
ishtp-hid-client.c HID: intel-ish-hid: Increase ISHTP resume ack timeout to 300ms 2025-08-12 14:49:14 +02:00
ishtp-hid.c HID: intel-ish-hid: Fix use-after-free issue in ishtp_hid_remove() 2025-02-19 10:09:27 +01:00
ishtp-hid.h HID: ishtp-hid-client: replace fake-flex arrays with flex-array members 2024-10-08 08:52:27 +02:00