diff options
| author | Pengpeng Hou <pengpeng@iscas.ac.cn> | 2026-06-24 22:35:58 +0800 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.com> | 2026-08-03 19:37:52 +0200 |
| commit | 336af689d58f245d9e12c2ddec1531e455080c68 (patch) | |
| tree | e169a3dae63e70543f581c3fa361153461e456d9 /tools/perf/scripts/python | |
| parent | 6bad2e38fe7f2da7dc982b2b80814e632832e568 (diff) | |
HID: amd_sfh: return an error when response wait times out
amdtp_wait_for_response() waits for request_done before completing a
report request. wait_event_interruptible_timeout() returns 0 when the
wait expires, but the current code treats only negative values as errors
and returns success on timeout.
Return -ETIMEDOUT when the response wait expires while preserving the
existing success path when the response has already been observed.
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Acked-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
