[PATCH v3 03/16] input: Flush the keyboard buffer before resetting it

Bin Meng bmeng.cn at gmail.com
Thu May 4 15:18:27 CEST 2023


On Mon, Mar 27, 2023 at 12:16 PM Simon Glass <sjg at chromium.org> wrote:
>
> 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 at chromium.org>
> ---
>
> (no changes since v2)
>
> Changes in v2:
> - Flush the buffer instead of skipping the reset
>
>  drivers/input/i8042.c | 19 +++++++++++++++++++
>  1 file changed, 19 insertions(+)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list