]> git.baikalelectronics.ru Git - kernel.git/commit
Input: elantech - make sure touchpad is really in absolute mode
authorArjan Opmeer <arjan@opmeer.net>
Sun, 19 Apr 2009 02:10:17 +0000 (19:10 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 19 Apr 2009 02:11:59 +0000 (19:11 -0700)
commitd15f407efa8026ae6437c209f3200e3de246fcba
tree319491c104dde49d4b439f2f3beaf2d5eb0abd6a
parentd07c9a57c5717c6ec5e169a3090bc52750538ffe
Input: elantech - make sure touchpad is really in absolute mode

There exist laptops with Elantech touchpads where switching to absolute mode
does not happen, although writing the configuration register succeeds
without error. Reading back the register afterwards reveils that the
absolute mode bit is not set as if masked out by the touchpad firmware.

Always read back register 0x10, make sure that for hardware version 1 the
absolute mode bit is actually set and fail otherwise. This prevents the case
where the touchpad is claimed by the Elantech driver but is nonetheless not
working.

Signed-off-by: Arjan Opmeer <arjan@opmeer.net>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/mouse/elantech.c