[PATCH 10/39] input: Do not process scancodes in atkbd until fully initialized
From: Vojtech Pavlik
Date: Mon Jun 07 2004 - 08:37:18 EST
You can pull this changeset from:
bk://kernel.bkbits.net/vojtech/input-for-linus
===================================================================
ChangeSet@xxxxxxxxxxxxx, 2004-04-23 02:40:48-05:00, dtor_core@xxxxxxxxxxxxx
Input: Do not generate events from atkbd until keyboard is completely
initialized. It should suppress messages about suprious NAKs
when controller's timeout is longer than one in atkbd
atkbd.c | 6 ++++++
1 files changed, 6 insertions(+)
===================================================================
diff -Nru a/drivers/input/keyboard/atkbd.c b/drivers/input/keyboard/atkbd.c
--- a/drivers/input/keyboard/atkbd.c 2004-06-07 13:12:59 +02:00
+++ b/drivers/input/keyboard/atkbd.c 2004-06-07 13:12:59 +02:00
@@ -188,6 +188,7 @@
unsigned int resend:1;
unsigned int release:1;
unsigned int bat_xl:1;
+ unsigned int enabled:1;
unsigned int last;
unsigned long time;
@@ -248,6 +249,9 @@
goto out;
}
+ if (!atkbd->enabled)
+ goto out;
+
if (atkbd->translated) {
if (atkbd->emul ||
@@ -749,6 +753,8 @@
atkbd->set = 2;
atkbd->id = 0xab00;
}
+
+ atkbd->enabled = 1;
if (atkbd->extra) {
atkbd->dev.ledbit[0] |= BIT(LED_COMPOSE) | BIT(LED_SUSPEND) | BIT(LED_SLEEP) | BIT(LED_MUTE) | BIT(LED_MISC);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/