[PATCH 11/39] input: Use reconnect instead of rescan in psmouse if possible

Vojtech Pavlik
2004-06-07T11:57:49Z

ChangeSet@1.1371.753.18, 2004-04-23 02:41:59-05:00, dtor_core@ameritech.net
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 2004-06-07 13:12:53 +02:00
+++ b/drivers/input/mouse/psmouse-base.c 2004-06-07 13:12:53 +02:00
@@ -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) {