]> git.baikalelectronics.ru Git - kernel.git/commit
Input: elantech - don't set bit 1 of reg_10 when the no_hw_res quirk is set
authorHans de Goede <hdegoede@redhat.com>
Sun, 8 Jun 2014 06:07:13 +0000 (23:07 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 8 Jun 2014 06:20:23 +0000 (23:20 -0700)
commit67ff49e5684a58c5b1c7e2ce27f26739bf589c11
tree622e71a868fa30ecb154af762fcae549d02266a8
parent39b8818b8fa5aaa68833d7355bbece64fedf71e8
Input: elantech - don't set bit 1 of reg_10 when the no_hw_res quirk is set

The touchpad on the GIGABYTE U2442 not only stops communicating when we try
to set bit 3 (enable real hardware resolution) of reg_10, but on some BIOS
versions also when we set bit 1 (enable two finger mode auto correct).

I've asked the original reporter of:
https://bugzilla.kernel.org/show_bug.cgi?id=61151

To check that not setting bit 1 does not lead to any adverse effects on his
model / BIOS revision, and it does not, so this commit fixes the touchpad
not working on these versions by simply never setting bit 1 for laptop
models with the no_hw_res quirk.

Reported-and-tested-by: James Lademann <jwlademann@gmail.com>
Tested-by: Philipp Wolfer <ph.wolfer@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/elantech.c