libpayload: Fix handling of CAPS LOCK key on PS/2 keyboards
authorPatrick Georgi <patrick.georgi@secunet.com>
Thu, 10 Nov 2011 14:48:37 +0000 (15:48 +0100)
committerStefan Reinauer <stefan.reinauer@coreboot.org>
Thu, 10 Nov 2011 16:51:53 +0000 (17:51 +0100)
commit583abc2eb2f1942fa8384c7e9fcfa830322b4c3b
tree77aa73537fff0cc7bfabc2a3221ca4d568172c58
parentf5e102d8103982349d1300e50dbce88bf697de9d
libpayload: Fix handling of CAPS LOCK key on PS/2 keyboards

The PS/2 keyboard driver set and reset the caps LED to show the
keyboard status. Unfortunately, that configuration happens over
the same path used to transmit keypresses.

In face of certain error conditions, the keyboard stopped working.
This change makes keyboard handling more robust.

Change-Id: I0489a9983ea7dab00357220e09398dd1a8538839
Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com>
Reviewed-on: http://review.coreboot.org/430
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
payloads/libpayload/drivers/keyboard.c