mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 08:03:01 +09:00
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>
This commit is contained in:
@@ -28,7 +28,6 @@
|
||||
#define PS2_FLAG_CMD1 BIT(2) /* Waiting for the first byte of command response */
|
||||
#define PS2_FLAG_WAITID BIT(3) /* Command executing is GET ID */
|
||||
#define PS2_FLAG_NAK BIT(4) /* Last transmission was NAKed */
|
||||
#define PS2_FLAG_ACK_CMD BIT(5) /* Waiting to ACK the command (first) byte */
|
||||
|
||||
struct ps2dev {
|
||||
struct serio *serio;
|
||||
|
||||
Reference in New Issue
Block a user