commit | 5d30483de96a6fcd006795dd6d73f36e8697cfc3 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Thu May 04 16:54:56 2023 -0600 |
committer | Bin Meng <bmeng@tinylab.org> | Thu May 11 10:25:29 2023 +0800 |
tree | 7fa183802fef4f9a00c57c9106524e68b9743086 | |
parent | 1297d318b4908243859c80fba2a60e949df136f1 [diff] |
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>