]> git.baikalelectronics.ru Git - kernel.git/commit
Input: i8042 - try to get stable CTR value when initializing
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 3 Nov 2009 05:57:40 +0000 (21:57 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 3 Nov 2009 06:11:43 +0000 (22:11 -0800)
commitfdf8ed5e0111135ccf7675d041a7c8c3f9a72b41
tree288e9baeae958db78a170e18b8c885699cfbf198
parentf3dbf5999e913edca67a20303ba32ea766939e95
Input: i8042 - try to get stable CTR value when initializing

If user presses keys while i8042 is being initialized there is a chance
that keyboard data will be mistaken for results of Read Control Register
command causing futher troubles. Work around this issue by reading CTR
several times and stop when we get matching results.

Reported-and-tested-by: Dave Young <hidave.darkstar@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/serio/i8042.c