Commit 8d04ddb6 authored by Dmitry Torokhov's avatar Dmitry Torokhov

Input: i8042 - disable interfaces when switching to legacy mode

Disable both keyboard and auxiliary interfaces before switching
to legacy mode to prevent atkbd from getting "empty" interrupts.
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 0d9d93c4
...@@ -761,6 +761,13 @@ static void i8042_controller_reset(void) ...@@ -761,6 +761,13 @@ static void i8042_controller_reset(void)
{ {
i8042_flush(); i8042_flush();
/*
* Disable both KBD and AUX interfaces so they don't get in the way
*/
i8042_ctr |= I8042_CTR_KBDDIS | I8042_CTR_AUXDIS;
i8042_ctr &= ~(I8042_CTR_KBDINT | I8042_CTR_AUXINT);
/* /*
* Disable MUX mode if present. * Disable MUX mode if present.
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment