Re: [PATCH] HID: amd_sfh: return an error when response wait times out
Jiri Kosina <[email protected]> Mon, 3 Aug 2026 19:38:05 +0200 (CEST)
| Newsgroups | org.kernel.vger.linux-input,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 24 Jun 2026, Pengpeng Hou wrote: > 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. Applied, thanks. -- Jiri Kosina SUSE Labs