[PATCH 10/15] New set of input patches: psmouse rescan on hotplug

From: Dmitry Torokhov
Date: Wed Apr 21 2004 - 01:12:30 EST



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


ChangeSet@xxxxxx, 2004-04-20 22:33:23-05:00, dtor_core@xxxxxxxxxxxxx
Input: when getting a new device announce (0xAA 0x00) in psmouse
try reconnecting instead of rescanning to preserve (if possible)
the same input device.


psmouse-base.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)


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



diff -Nru a/drivers/input/mouse/psmouse-base.c b/drivers/input/mouse/psmouse-base.c
--- a/drivers/input/mouse/psmouse-base.c Tue Apr 20 23:10:23 2004
+++ b/drivers/input/mouse/psmouse-base.c Tue Apr 20 23:10:23 2004
@@ -180,7 +180,7 @@
if (psmouse->pktcnt == 2) {
if (psmouse->packet[1] == PSMOUSE_RET_ID) {
psmouse->state = PSMOUSE_IGNORE;
- serio_rescan(serio);
+ serio_reconnect(serio);
goto out;
}
if (psmouse->type == PSMOUSE_SYNAPTICS) {
-
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/