Skip to content

Commit

Permalink
[PATCH] ALPS resume fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dmitry Torokhov authored and Linus Torvalds committed May 17, 2005
1 parent 64b14d3 commit f3a5c73
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/input/mouse/alps.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit f3a5c73

Please sign in to comment.