Input: libps2 - support retransmission of command data
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 5 Jan 2018 06:01:43 +0000 (22:01 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 3 Feb 2018 00:50:27 +0000 (16:50 -0800)
commitb99e1f2a1a3f4158bed9b9e9e97ac46678d8c2ac
treee5df7e84519b577f25d6984efde9ccb3fa22f91a
parent147b903da65daedc90dbeb66a75dd608a6a41ef2
Input: libps2 - support retransmission of command data

The devices are allowed to respond to either command byte or command
parameter with a NAK (0xfe), and the host is supposed to resend the
"correct" byte. The device then will either respond with ACK or ERR (0xfc).
Let's teach libps2 to handle the NAK responses properly, so that individual
drivers do not need to handle them.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/serio/libps2.c