commit | b99e1f2a1a3f4158bed9b9e9e97ac46678d8c2ac | [log] [tgz] |
---|---|---|
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | Thu Jan 04 22:01:43 2018 -0800 |
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | Fri Feb 02 16:50:27 2018 -0800 |
tree | e5df7e84519b577f25d6984efde9ccb3fa22f91a | |
parent | 147b903da65daedc90dbeb66a75dd608a6a41ef2 [diff] |
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>