diff options
author | Dmitry Torokhov <[email protected]> | 2024-08-29 08:38:54 -0700 |
---|---|---|
committer | Dmitry Torokhov <[email protected]> | 2024-08-29 10:46:17 -0700 |
commit | c472d33bcbf7a1ed3710efe93822b5e94eabe18c (patch) | |
tree | a98910a3ba4a61c9324f6da84ac1f45d107829e3 /rust/helpers | |
parent | 4e870e6bbec5c41c0d8b253282dca9465fbf5044 (diff) |
Input: cypress_ps2 - fix waiting for command response
Commit 8bccf667f62a ("Input: cypress_ps2 - report timeouts when reading
command status") uncovered an existing problem with cypress_ps2 driver:
it tries waiting on a PS/2 device waitqueue without using the rest of
libps2. Unfortunately without it nobody signals wakeup for the
waiting process, and each "extended" command was timing out. But the
rest of the code simply did not notice it.
Fix this by switching from homegrown way of sending request to get
command response and reading it to standard ps2_command() which does
the right thing.
Reported-by: Woody Suwalski <[email protected]>
Tested-by: Woody Suwalski <[email protected]>
Fixes: 8bccf667f62a ("Input: cypress_ps2 - report timeouts when reading command status")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'rust/helpers')
0 files changed, 0 insertions, 0 deletions