]> 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)
commitcbd9f82b1127f93f8bc034044e4efe627bd12691
tree1d1537f13303b394dbd14f4cd1e4ea7972b7934a
parent6527574fe3ac7b4f3e33c35486d59b5a4a99fa0b
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