]> git.baikalelectronics.ru Git - kernel.git/commit
Input: psmouse - add support for Cortron PS/2 Trackballs
authorAristeu Rozanski <arozansk@redhat.com>
Thu, 10 May 2007 05:47:18 +0000 (01:47 -0400)
committerDmitry Torokhov <dtor@insightbb.com>
Tue, 10 Jul 2007 04:35:15 +0000 (00:35 -0400)
commitd06045df7be3df33d0d466cb3275ea91cb7b9bb9
treecc628beb1db79a83faefb1a4646e50186df3dd50
parentbe8e6fb0ea4a9549f7b7972f6d6b45fe638acfc7
Input: psmouse - add support for Cortron PS/2 Trackballs

Cortron PS/2 Trackballs (700-0001A) report the 4th button using the 4th
bit of the first packet (yes, it breaks the standard PS/2 protocol).
This patch adds an extra protocol to generate BTN_SIDE based on the 4th
bit. There's no way to detect those trackballs using any kind of special
sequence, thus the protocol must be activated explicitely by writing
into 'protocol' sysfs attribute:

echo -n "cortps" > /sys/devices/platform/i8042/serio1/protocol

Signed-off-by: Aristeu Rozanski <arozansk@redhat.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/mouse/psmouse-base.c
drivers/input/mouse/psmouse.h