39e53b5
From cb6fcfe5a7e9197ceb7e9eec56e9c526e4e76354 Mon Sep 17 00:00:00 2001
39e53b5
From: Benjamin Tissoires <benjamin.tissoires@redhat.com>
39e53b5
Date: Mon, 14 Mar 2016 19:37:12 +0100
39e53b5
Subject: [PATCH] Input: synaptics - handle spurious release of trackstick
39e53b5
 buttons, again
39e53b5
39e53b5
Looks like the fimware 8.2 stall has the extra buttons spurious release
39e53b5
bug.
39e53b5
39e53b5
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
39e53b5
---
39e53b5
 drivers/input/mouse/synaptics.c | 3 ++-
39e53b5
 1 file changed, 2 insertions(+), 1 deletion(-)
39e53b5
39e53b5
diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c
39e53b5
index 6025eb4..4ef8d7a 100644
39e53b5
--- a/drivers/input/mouse/synaptics.c
39e53b5
+++ b/drivers/input/mouse/synaptics.c
39e53b5
@@ -863,7 +863,8 @@ static void synaptics_report_ext_buttons(struct psmouse *psmouse,
39e53b5
 		return;
39e53b5
 
39e53b5
 	/* Bug in FW 8.1, buttons are reported only when ExtBit is 1 */
39e53b5
-	if (SYN_ID_FULL(priv->identity) == 0x801 &&
39e53b5
+	if ((SYN_ID_FULL(priv->identity) == 0x801 ||
39e53b5
+	     SYN_ID_FULL(priv->identity) == 0x802) &&
39e53b5
 	    !((psmouse->packet[0] ^ psmouse->packet[3]) & 0x02))
39e53b5
 		return;
39e53b5
 
39e53b5
-- 
39e53b5
2.5.0
39e53b5