Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 395f24b3 authored by Ronald Tschalär's avatar Ronald Tschalär Committed by Greg Kroah-Hartman
Browse files

Input: applespi - don't wait for responses to commands indefinitely.

[ Upstream commit 0ce1ac23

 ]

The response to a command may never arrive or it may be corrupted (and
hence dropped) for some reason. While exceedingly rare, when it did
happen it blocked all further commands. One way to fix this was to
do a suspend/resume. However, recovering automatically seems like a
nicer option. Hence this puts a time limit (1 sec) on how long we're
willing to wait for a response, after which we assume it got lost.

Signed-off-by: default avatarRonald Tschalär <ronald@innovation.ch>
Link: https://lore.kernel.org/r/20210217190718.11035-1-ronald@innovation.ch


Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent ad93777a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment