[PATCH] ALPS resume fix
authorDmitry Torokhov <dtor_core@ameritech.net>
Tue, 17 May 2005 04:53:06 +0000 (21:53 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 17 May 2005 14:59:09 +0000 (07:59 -0700)
ALPS needs to be reset for detection to work reliably when reconnecting.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Cc: Vojtech Pavlik <vojtech@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/input/mouse/alps.c

index 52c6fd2e70ccfb40876e28ceb7477415670c7c35..42a9f7f6f8cb2a9b31e65404959dfbb1305be942 100644 (file)
@@ -341,6 +341,8 @@ static int alps_reconnect(struct psmouse *psmouse)
        unsigned char param[4];
        int version;
 
+       psmouse_reset(psmouse);
+
        if (!(priv->i = alps_get_model(psmouse, &version)))
                return -1;