Re: [RFC/PATCH 4/3] Input: correctly activate i0842 ports on resume

From: Dmitry Torokhov
Date: Wed Dec 03 2003 - 03:05:59 EST


===================================================================


ChangeSet@xxxxxx, 2003-12-03 02:52:23-05:00, dtor_core@xxxxxxxxxxxxx
Input: fix i8042_activate_port() - the port is still disabled on
resume, need explicitely enable it (found by Brian Perkins)


i8042.c | 6 ++++++
1 files changed, 6 insertions(+)


===================================================================



diff -Nru a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c
--- a/drivers/input/serio/i8042.c Wed Dec 3 02:55:54 2003
+++ b/drivers/input/serio/i8042.c Wed Dec 3 02:55:54 2003
@@ -226,6 +226,12 @@

i8042_flush();

+ /*
+ * Enable port again here because it is disabled if we are
+ * resuming (normally it is enabled already).
+ */
+ i8042_ctr &= ~values->disable;
+
i8042_ctr |= values->irqen;

if (i8042_command(&i8042_ctr, I8042_CMD_CTL_WCTR)) {
-
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/