From: Andrey Moiseev Date: Mon, 16 Sep 2013 22:17:31 +0000 (-0700) Subject: Input: i8042 - i8042_flush fix for a full 8042 buffer X-Git-Tag: v3.12~14^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f0d2604134880f739642fd7c3ae55db33c838e7;p=pandora-kernel.git 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 Signed-off-by: Dmitry Torokhov --- Reading git-diff-tree failed