libpayload/keyboard: Introduce keyboard_drain_input()
commitf7faac151abfedca5f56d7587edf4e54030f8015
authorNico Huber <nico.h@gmx.de>
Sun, 1 Nov 2020 18:29:41 +0000 (1 19:29 +0100)
committerHung-Te Lin <hungte@chromium.org>
Thu, 24 Dec 2020 08:18:57 +0000 (24 08:18 +0000)
tree1880821a28731e3a3e3583885f24c90258a9a9b3
parenta160d93dda188b33b4b28bb888bd78120e42695d
libpayload/keyboard: Introduce keyboard_drain_input()

Move the input-buffer draining into a function. It uses the low-level
i8042 API directly to avoid conflicts with changes in the high-level
keyboard API.

Change-Id: I9427c5b8be4d59c2ee3da12d6168d34590043682
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/47084
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
payloads/libpayload/drivers/i8042/keyboard.c