Skip to content

Commit

Permalink
[SERMOUSE]: Sun mice speak 5-byte protocol too.
Browse files Browse the repository at this point in the history
Noticed by Christophe Zimmerman, this explains the slow mouse movement
with 2.6.x kernels.

And checking the 2.4.x drivers/sbus/char/sunmouse.c driver shows we
always used a 5-byte protocol with Sun mice in the past.  I have no
idea how the 3-byte thing got into the 2.6.x driver, but it's surely
wrong.

Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
David S. Miller committed Dec 28, 2005
1 parent d5784b5 commit 68ca243
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/mouse/sermouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ static void sermouse_process_msc(struct sermouse *sermouse, signed char data, st

input_sync(dev);

if (++sermouse->count == (5 - ((sermouse->type == SERIO_SUN) << 1)))
if (++sermouse->count == 5)
sermouse->count = 0;
}

Expand Down

0 comments on commit 68ca243

Please sign in to comment.