[U-Boot] [PATCH v2 5/7] x86: i8042: Correctly initialize the controller

Simon Glass sjg at chromium.org
Sat Aug 22 01:27:57 CEST 2015


Hi Bin,

On 21 August 2015 at 01:18, Bin Meng <bmeng.cn at gmail.com> wrote:
> The existing i8042 keyboard controller driver has some issues.
> First of all, it does not issue a self-test command (0xaa) to the
> controller at the very beginning. Without this, the controller
> does not respond any command at all. Secondly, it initializes

a few nits

"does not response to any command"

> the configuration byte reigster to turn on keyboard's interrupt,

turn on the keyboard's interrupt

> which is not allowed as U-Boot we don't normally enable interrupt.

as U-Boot does not normally allow interrupts to be processed.

> Finally, at the end of the initialization routine, it wrongly
> sets the controller to disable all interfaces including both
> keyboard and mouse.
>
> Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
> Acked-by: Simon Glass <sjg at chromium.org>
>
> ---
>
> Changes in v2:
> - Reorder this patch to follow the i8042 driver clean up patches
>
>  drivers/input/i8042.c | 43 +++++++++++++++++++++----------------------
>  1 file changed, 21 insertions(+), 22 deletions(-)

I am amazed this code actually works! But at least on chromebook_link, it does.

Regards,
Simon


More information about the U-Boot mailing list