[PATCH] UBUNTU: Input: atkbd - mark keyboard as disabled when suspending/unloading

Amit Kucheria amit.kucheria at canonical.com
Tue Apr 28 07:03:37 UTC 2009


From: Dmitry Torokhov <dmitry.torokhov at gmail.com>

Bug: #213988

This will shut off garbage that may come from KBD port during resume.
(cherry picked from commit 57f5b1590f2d801a3a7f072e2c65f14d4545852c)

Signed-off-by: Dmitry Torokhov <dtor at mail.ru>
Signed-off-by: Amit Kucheria <amit.kucheria at canonical.com>
---
 drivers/input/keyboard/atkbd.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/input/keyboard/atkbd.c b/drivers/input/keyboard/atkbd.c
index b39c5b3..b58a51a 100644
--- a/drivers/input/keyboard/atkbd.c
+++ b/drivers/input/keyboard/atkbd.c
@@ -809,6 +809,8 @@ static int atkbd_activate(struct atkbd *atkbd)
 static void atkbd_cleanup(struct serio *serio)
 {
 	struct atkbd *atkbd = serio_get_drvdata(serio);
+
+	atkbd_disable(atkbd);
 	ps2_command(&atkbd->ps2dev, NULL, ATKBD_CMD_RESET_BAT);
 }
 
-- 
1.6.0.4





More information about the kernel-team mailing list