]> git.baikalelectronics.ru Git - kernel.git/commit
Input: ALPS - fix trackstick detection on some Dell Latitudes
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 14 Jan 2015 04:46:09 +0000 (20:46 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 15 Feb 2015 23:44:18 +0000 (15:44 -0800)
commit73bf0b4ad38c8bf1f2a9f247f1e353426ddd5e41
tree1d1537f13303b394dbd14f4cd1e4ea7972b7934a
parent1031fcbe83afadfbdad0fff7d7e93d653efafa28
Input: ALPS - fix trackstick detection on some Dell Latitudes

On some Dell Latitudes we fail to identify presence of trackstick unless we
reset the device. The issue is quite benign as we do perform reset in
alps_init(), so the trackstick ends up working, but mouse name reported to
userspace is not accurate.

In order to fix the issue while avoiding the additional lengthy reset we
move the resrt to alps_detect() and keep the discovered state to be used
later in alps_init().

Reported-by: Pali Rohár <pali.rohar@gmail.com>
Tested-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/alps.c