Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Input: libps2 - fix NAK handling

Do not try to process "resend" or "reject" responses from the device
as normal response data for a command.

Reviewed-by: Raul E Rangel <rrangel@chromium.org>
Link: https://lore.kernel.org/r/20230511185252.386941-5-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

+1 -1
+1 -1
drivers/input/serio/libps2.c
··· 445 445 ps2dev->flags &= ~PS2_FLAG_ACK; 446 446 wake_up(&ps2dev->wait); 447 447 448 - if (data != PS2_RET_ACK) 448 + if (!ps2dev->nak && data != PS2_RET_ACK) 449 449 ps2_handle_response(ps2dev, data); 450 450 451 451 return true;