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)
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>

No differences found