Input: libps2 - remove special handling of ACK for command byte
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 11 May 2023 18:52:42 +0000 (11:52 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 18 May 2023 18:40:32 +0000 (11:40 -0700)
commitfc522f3bdf43efa75b54775978b6b6c19d0d997d
tree875d44a1d61311238cd4accf02370012be5c51e2
parent100e16959c3ca8cb7be788ed3e2c5867481f35f6
Input: libps2 - remove special handling of ACK for command byte

When getting unexpected data while waiting for an acknowledgement it does
not matter what command phase is currently executed, and ps2_handle_ack()
should indicate that no further processing is needed for the received data
byte. Remove PS2_FLAG_ACK_CMD and associated handling.

Note that while it is possible to make ps2_handle_ack (and
ps2_handle_repsonse) return void, it will be done when the code will be
converted to common PS/2 interrupt handler later.

Reviewed-by: Raul E Rangel <rrangel@chromium.org>
Link: https://lore.kernel.org/r/20230511185252.386941-3-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/serio/libps2.c
include/linux/libps2.h