projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d9d93c
)
Input: i8042 - disable interfaces when switching to legacy mode
author
Dmitry Torokhov
<dtor@insightbb.com>
Thu, 12 Apr 2007 05:32:09 +0000
(
01:32
-0400)
committer
Dmitry Torokhov
<dtor@insightbb.com>
Thu, 12 Apr 2007 05:32:09 +0000
(
01:32
-0400)
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>
drivers/input/serio/i8042.c
patch
|
blob
|
history
diff --git
a/drivers/input/serio/i8042.c
b/drivers/input/serio/i8042.c
index ec195a36e8f66ea9f170698d5b6dbb34f6140649..ff40b5cbbf3f042f9329bb51d4a2273a57b9b8f3 100644
(file)
--- a/
drivers/input/serio/i8042.c
+++ b/
drivers/input/serio/i8042.c
@@
-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.
*/