Commit e41fb09b authored by Dmitry Torokhov's avatar Dmitry Torokhov Committed by Linus Torvalds

[PATCH] ALPS: fix enabling hardware tapping

It looks like logic for enabling hardware tapping in ALPS driver was
inverted and we enable it only if it was already enabled by BIOS or
firmware.

I have a confirmation from one user that the patch below fixes the problem
for him and it might be beneficial if we could get it into 2.6.12.
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 5db92850
...@@ -352,7 +352,7 @@ static int alps_reconnect(struct psmouse *psmouse) ...@@ -352,7 +352,7 @@ static int alps_reconnect(struct psmouse *psmouse)
if (alps_get_status(psmouse, param)) if (alps_get_status(psmouse, param))
return -1; return -1;
if (param[0] & 0x04) if (!(param[0] & 0x04))
alps_tap_mode(psmouse, 1); alps_tap_mode(psmouse, 1);
if (alps_absolute_mode(psmouse)) { if (alps_absolute_mode(psmouse)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment