]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Input: elantech - fix absolute mode setting on some ASUS laptops
authorUlrik De Bie <ulrik.debie-os@e2big.org>
Mon, 6 Apr 2015 22:35:38 +0000 (15:35 -0700)
committerSasha Levin <sasha.levin@oracle.com>
Sun, 17 May 2015 23:12:05 +0000 (19:12 -0400)
commitd37d990e811e73b5504f55a11446f28cb940dc3b
tree79745d6757b45fb5cb7eea3ce29532bfb982f58f
parentf42c7734c0a3c2156298adeea5c1cdaa037d6889
Input: elantech - fix absolute mode setting on some ASUS laptops

[ Upstream commit bd884149aca61de269fd9bad83fe2a4232ffab21 ]

On ASUS TP500LN and X750JN, the touchpad absolute mode is reset each
time set_rate is done.

In order to fix this, we will verify the firmware version, and if it
matches the one in those laptops, the set_rate function is overloaded
with a function elantech_set_rate_restore_reg_07 that performs the
set_rate with the original function, followed by a restore of reg_07
(the register that sets the absolute mode on elantech v4 hardware).

Also the ASUS TP500LN and X750JN firmware version, capabilities, and
button constellation is added to elantech.c

Cc: stable@vger.kernel.org
Reported-and-tested-by: George Moutsopoulos <gmoutso@yahoo.co.uk>
Signed-off-by: Ulrik De Bie <ulrik.debie-os@e2big.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/input/mouse/elantech.c
drivers/input/mouse/elantech.h