Skip to content

Commit

Permalink
Input: i8042 - disable interfaces when switching to legacy mode
Browse files Browse the repository at this point in the history
Disable both keyboard and auxiliary interfaces before switching
to legacy mode to prevent atkbd from getting "empty" interrupts.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Dmitry Torokhov committed Apr 12, 2007
1 parent 0d9d93c commit 8d04ddb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/input/serio/i8042.c
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,13 @@ static void i8042_controller_reset(void)
{
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.
*/
Expand Down

0 comments on commit 8d04ddb

Please sign in to comment.