summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Boyer <jwboyer@fedoraproject.org>2015-12-03 10:59:46 -0500
committerJosh Boyer <jwboyer@fedoraproject.org>2015-12-03 11:04:38 -0500
commit7361620af83fe62a8d2c1588f9c71e6e947e005c (patch)
tree2966014c1085117cf7a5fda57ff3ba9300a92ef0
parent1f24bf8ccdf265e45c0d4a5d6acb2ab4a916a284 (diff)
downloadkernel-7361620af83fe62a8d2c1588f9c71e6e947e005c.tar.gz
kernel-7361620af83fe62a8d2c1588f9c71e6e947e005c.tar.xz
kernel-7361620af83fe62a8d2c1588f9c71e6e947e005c.zip
Add patch to fix palm rejection on certain touchpads (rhbz 1287819)
-rw-r--r--HID-multitouch-enable-palm-rejection-if-device-imple.patch41
-rw-r--r--kernel.spec6
2 files changed, 47 insertions, 0 deletions
diff --git a/HID-multitouch-enable-palm-rejection-if-device-imple.patch b/HID-multitouch-enable-palm-rejection-if-device-imple.patch
new file mode 100644
index 000000000..b9753fce7
--- /dev/null
+++ b/HID-multitouch-enable-palm-rejection-if-device-imple.patch
@@ -0,0 +1,41 @@
+From 37e81f1a82ba4f214c05c4cc3807378753c7a867 Mon Sep 17 00:00:00 2001
+From: Allen Hung <allen_hung@dell.com>
+Date: Fri, 20 Nov 2015 18:21:06 +0800
+Subject: [PATCH] HID: multitouch: enable palm rejection if device implements
+ confidence usage
+
+The usage Confidence is mandary to Windows Precision Touchpad devices. The
+appearance of this usage is checked in hidinput_connect but the quirk
+MT_QUIRK_VALID_IS_CONFIDENCE is not applied to device accordingly.
+Apply this quirk and also remove quirk MT_QUIRK_ALWAYS_VALID to enable palm
+rejection for the WIN 8 touchpad devices which have implemented usage
+Confidence in its input reports.
+
+Tested on Dell XPS 13 laptop.
+
+Signed-off-by: Allen Hung <allen_hung@dell.com>
+Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
+Signed-off-by: Jiri Kosina <jkosina@suse.cz>
+---
+ drivers/hid/hid-multitouch.c | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c
+index 7c811252c1ce..0c94348a168d 100644
+--- a/drivers/hid/hid-multitouch.c
++++ b/drivers/hid/hid-multitouch.c
+@@ -448,6 +448,11 @@ static int mt_touch_input_mapping(struct hid_device *hdev, struct hid_input *hi,
+ mt_store_field(usage, td, hi);
+ return 1;
+ case HID_DG_CONFIDENCE:
++ if (cls->name == MT_CLS_WIN_8 &&
++ field->application == HID_DG_TOUCHPAD) {
++ cls->quirks &= ~MT_QUIRK_ALWAYS_VALID;
++ cls->quirks |= MT_QUIRK_VALID_IS_CONFIDENCE;
++ }
+ mt_store_field(usage, td, hi);
+ return 1;
+ case HID_DG_TIPSWITCH:
+--
+2.5.0
+
diff --git a/kernel.spec b/kernel.spec
index dfbb10938..d152012ce 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -597,6 +597,9 @@ Patch567: usbvision-fix-crash-on-detecting-device-with-invalid.patch
#CVE-2015-7515 rhbz 1285326 1285331
Patch568: Input-aiptek-fix-crash-on-detecting-device-without-e.patch
+#rhbz 1287819
+Patch570: HID-multitouch-enable-palm-rejection-if-device-imple.patch
+
# END OF PATCH DEFINITIONS
%endif
@@ -2040,6 +2043,9 @@ fi
#
#
%changelog
+* Thu Dec 03 2015 Josh Boyer <jwboyer@fedoraproject.org>
+- Add patch to fix palm rejection on certain touchpads (rhbz 1287819)
+
* Wed Dec 02 2015 Laura Abbott <labbott@redhat.com> - 4.4.0-0.rc3.git2.1
- Linux v4.4-rc3-8-g6a24e72