]> git.baikalelectronics.ru Git - uboot.git/commit
input: Flush the keyboard buffer before resetting it
authorSimon Glass <sjg@chromium.org>
Thu, 4 May 2023 22:54:56 +0000 (16:54 -0600)
committerBin Meng <bmeng@tinylab.org>
Thu, 11 May 2023 02:25:29 +0000 (10:25 +0800)
commit16f77fe1daba3f8f99d528861af87b6cdd510622
tree7fa183802fef4f9a00c57c9106524e68b9743086
parent7d3296e6964f919e96f6253b37edfb30b608ed1e
input: Flush the keyboard buffer before resetting it

If U-Boot is not the first-stage bootloader the keyboard may already be
set up. Make sure to flush any data before trying to reset it. This
avoids a long timeout / hang.

Add some comments and a log category while we are here.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/input/i8042.c