[kernel/f20] Add synaptics min/max quirk patch for the ThinkPad W540 (rhbz 1096436)
Hans de Goede
jwrdegoede at fedoraproject.org
Wed May 14 10:52:03 UTC 2014
commit 4215165e5c452a2406fabd06acfc85aceb550a1d
Author: Hans de Goede <hdegoede at redhat.com>
Date: Wed May 14 12:51:54 2014 +0200
Add synaptics min/max quirk patch for the ThinkPad W540 (rhbz 1096436)
...s-Add-min-max-quirk-for-the-ThinkPad-W540.patch | 35 ++++++++++++++++++++
kernel.spec | 9 +++++
2 files changed, 44 insertions(+), 0 deletions(-)
---
diff --git a/0001-synaptics-Add-min-max-quirk-for-the-ThinkPad-W540.patch b/0001-synaptics-Add-min-max-quirk-for-the-ThinkPad-W540.patch
new file mode 100644
index 0000000..9ccc271
--- /dev/null
+++ b/0001-synaptics-Add-min-max-quirk-for-the-ThinkPad-W540.patch
@@ -0,0 +1,35 @@
+From 8351510e7a3c1b35adf046d8c473be2f5ad617c7 Mon Sep 17 00:00:00 2001
+From: Hans de Goede <hdegoede at redhat.com>
+Date: Wed, 14 May 2014 12:40:08 +0200
+Subject: [PATCH] synaptics: Add min/max quirk for the ThinkPad W540
+
+https://bugzilla.redhat.com/show_bug.cgi?id=1096436
+
+Tested-and-reported-by: ajayr at bigfoot.com
+Signed-off-by: Hans de Goede <hdegoede at redhat.com>
+---
+ drivers/input/mouse/synaptics.c | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c
+index d68d33f..d4c05b1 100644
+--- a/drivers/input/mouse/synaptics.c
++++ b/drivers/input/mouse/synaptics.c
+@@ -1614,6 +1614,14 @@ static const struct dmi_system_id min_max_dmi_table[] __initconst = {
+ .driver_data = (int []){1024, 5112, 2024, 4832},
+ },
+ {
++ /* Lenovo ThinkPad W540 */
++ .matches = {
++ DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
++ DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad W540"),
++ },
++ .driver_data = (int []){1024, 5112, 2024, 4832},
++ },
++ {
+ /* Lenovo Yoga S1 */
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+--
+1.9.0
+
diff --git a/kernel.spec b/kernel.spec
index 66f65fe..d6b8d7f 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -772,6 +772,9 @@ Patch25087: jme-fix-dma-unmap-error.patch
# CVE-2014-3144 CVE-2014-3145 rhbz 1096775, 1096784
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
+
# END OF PATCH DEFINITIONS
%endif
@@ -1497,6 +1500,9 @@ ApplyPatch jme-fix-dma-unmap-error.patch
# CVE-2014-3144 CVE-2014-3145 rhbz 1096775, 1096784
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
+
# END OF PATCH APPLICATIONS
%endif
@@ -2308,6 +2314,9 @@ fi
# ||----w |
# || ||
%changelog
+* Wed May 14 2014 Hans de Goede <hdegoede at redhat.com>
+- Add synaptics min/max quirk patch for the ThinkPad W540 (rhbz 1096436)
+
* Tue May 13 2014 Justin M. Forbes <jforbes at fedoraproject.org> - 3.14.4-200
- Linux v3.14.4
More information about the scm-commits
mailing list