Files
linux/drivers/input
Andrey Moiseev 2f0d260413 Input: i8042 - i8042_flush fix for a full 8042 buffer
When 8042 internal data buffer is full, the driver
erroneously decides that the controller is not present.

i8042_flush returns the number of flushed bytes, which is
in 0 - I8042_BUFFER_SIZE range inclusive. Therefore, i8042_flush
has no way to indicate an error. Moreover i8042_controller_check
takes initially full buffer (i8042_flush returned
I8042_BUFFER_SIZE) as a sign of absence of the controller.

Let's change i8042 to return success/error instead and make sure
we do not return error prematurely.

Signed-off-by: Andrey Moiseev <o2g.org.ru@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2013-09-18 12:22:06 -07:00
..
2012-11-24 00:05:38 -08:00
2013-09-06 20:23:44 -07:00
2013-09-06 20:23:44 -07:00
2012-08-21 22:29:49 -07:00
2013-09-07 12:53:20 -07:00
2012-08-21 22:29:49 -07:00
2012-08-21 22:29:49 -07:00
2012-08-21 22:29:49 -07:00