From ffc3a4211e247d9409da0b1fa1f2bdda2780d7a5 Mon Sep 17 00:00:00 2001 From: Josh Boyer Date: Tue, 20 May 2014 12:18:26 -0400 Subject: [PATCH] Backport patch to add new elantech touchpad support (rhbz 1051668) --- ...support-for-newer-elantech-touchpads.patch | 32 +++++++++++++++++++ kernel.spec | 9 ++++++ 2 files changed, 41 insertions(+) create mode 100644 Input-elantech-add-support-for-newer-elantech-touchpads.patch diff --git a/Input-elantech-add-support-for-newer-elantech-touchpads.patch b/Input-elantech-add-support-for-newer-elantech-touchpads.patch new file mode 100644 index 000000000..448aeae54 --- /dev/null +++ b/Input-elantech-add-support-for-newer-elantech-touchpads.patch @@ -0,0 +1,32 @@ +Bugzilla: 1051668 +Upstream-status: 3.15 + +From ae4bedf0679d99f0a9b80a7ea9b8dd205de05d06 Mon Sep 17 00:00:00 2001 +From: Jordan Rife +Date: Tue, 22 Apr 2014 17:44:51 -0700 +Subject: Input: elantech - add support for newer elantech touchpads + +Newer elantech touchpads are not recognized by the current driver, since it +fails to detect their firmware version number. This prevents more advanced +touchpad features from being usable such as two-finger scrolling. This +patch allows newer touchpads to be detected and be fully functional. Tested +on Sony Vaio SVF13N17PXB. + +Signed-off-by: Jordan Rife +Signed-off-by: Dmitry Torokhov + +diff --git a/drivers/input/mouse/elantech.c b/drivers/input/mouse/elantech.c +index ef1cf52..088d354 100644 +--- a/drivers/input/mouse/elantech.c ++++ b/drivers/input/mouse/elantech.c +@@ -1353,6 +1353,7 @@ static int elantech_set_properties(struct elantech_data *etd) + case 6: + case 7: + case 8: ++ case 9: + etd->hw_version = 4; + break; + default: +-- +cgit v0.10.1 + diff --git a/kernel.spec b/kernel.spec index d6b8d7fb0..e6895ec3b 100644 --- a/kernel.spec +++ b/kernel.spec @@ -775,6 +775,9 @@ Patch25090: filter-prevent-nla-extensions-to-peek-beyond-the-end.patch #rhbz 1096436 Patch25091: 0001-synaptics-Add-min-max-quirk-for-the-ThinkPad-W540.patch +#rhbz 1051668 +Patch25092: Input-elantech-add-support-for-newer-elantech-touchpads.patch + # END OF PATCH DEFINITIONS %endif @@ -1503,6 +1506,9 @@ ApplyPatch filter-prevent-nla-extensions-to-peek-beyond-the-end.patch #rhbz 1096436 ApplyPatch 0001-synaptics-Add-min-max-quirk-for-the-ThinkPad-W540.patch +#rhbz 1051668 +ApplyPatch Input-elantech-add-support-for-newer-elantech-touchpads.patch + # END OF PATCH APPLICATIONS %endif @@ -2314,6 +2320,9 @@ fi # ||----w | # || || %changelog +* Tue May 20 2014 Josh Boyer +- Backport patch to add new elantech touchpad support (rhbz 1051668) + * Wed May 14 2014 Hans de Goede - Add synaptics min/max quirk patch for the ThinkPad W540 (rhbz 1096436)