OSDN Git Service

Input: psmouse - fix button reporting for basic protocols
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 25 Jun 2018 19:02:40 +0000 (12:02 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 26 Jun 2018 23:21:45 +0000 (16:21 -0700)
commit03ae3a9caf4a59edd32b65c89c375a98ce3ea1ef
tree3e8c88b9a0835d338cb41ada6d5844eb9a949107
parentdd6bee81c942c0ea01030da9356026afb88f9d18
Input: psmouse - fix button reporting for basic protocols

The commit ba667650c568 ("Input: psmouse - clean up code") was pretty
brain-dead and broke extra buttons reporting for variety of PS/2 mice:
Genius, Thinkmouse and Intellimouse Explorer. We need to actually inspect
the data coming from the device when reporting events.

Fixes: ba667650c568 ("Input: psmouse - clean up code")
Reported-by: Jiri Slaby <jslaby@suse.cz>
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/psmouse-base.c