Skip to contentSkip to conversation

Input: synaptics - handle spurious release of trackstick buttons, again

PATCH Applied Benjamin Tissoires 3 participants 3 messages Mar 15, 2016 – Mar 18, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Input: synaptics - handle spurious release of trackstick buttons, again

Looks like the fimware 8.2 stall has the extra buttons spurious release bug.

---
 drivers/input/mouse/synaptics.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/input/mouse/synaptics.c +3 -2
index 6025eb4..9f3b83f 100644
@@ -862,8 +862,9 @@ static void synaptics_report_ext_buttons(struct psmouse *psmouse,
 	if (!SYN_CAP_MULTI_BUTTON_NO(priv->ext_cap))
 		return;
 
-	/* Bug in FW 8.1, buttons are reported only when ExtBit is 1 */
-	if (SYN_ID_FULL(priv->identity) == 0x801 &&
+	/* Bug in FW 8.1 & 8.2, buttons are reported only when ExtBit is 1 */
+	if (((SYN_ID_FULL(priv->identity) == 0x801) ||
+	     (SYN_ID_FULL(priv->identity) == 0x802)) &&
 	    !((psmouse->packet[0] ^ psmouse->packet[3]) & 0x02))
 		return;
 
Signature · 1 line
2.5.0
#1 lore raw
Quoted 1 line · Benjamin Tissoires

Looks like the fimware 8.2 stall has the extra buttons spurious release

Typo: *still, not stall. (sorry)

Cheers,
Benjamin

Quoted 32 lines

bug.

---
 drivers/input/mouse/synaptics.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/input/mouse/synaptics.c +3 -3
index 6025eb4..9f3b83f 100644
@@ -862,8 +862,9 @@ static void synaptics_report_ext_buttons(struct psmouse *psmouse,
        if (!SYN_CAP_MULTI_BUTTON_NO(priv->ext_cap))
                return;
 
-       /* Bug in FW 8.1, buttons are reported only when ExtBit is 1 */
-       if (SYN_ID_FULL(priv->identity) == 0x801 &&
+       /* Bug in FW 8.1 & 8.2, buttons are reported only when ExtBit is 1 */
+       if (((SYN_ID_FULL(priv->identity) == 0x801) ||
+            (SYN_ID_FULL(priv->identity) == 0x802)) &&
            !((psmouse->packet[0] ^ psmouse->packet[3]) & 0x02))
                return;
 
--

2.5.0

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

maintainer Applied
#2 lore raw
In reply to Benjamin Tissoires
Quoted 6 lines · Benjamin Tissoires

Looks like the fimware 8.2 stall has the extra buttons spurious release bug.

Applied, thank you.

Quoted 9 lines
---
 drivers/input/mouse/synaptics.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/input/mouse/synaptics.c +0 -0
index 6025eb4..9f3b83f 100644

drivers/input/mouse/synaptics.c static void synaptics_report_ext_buttons(struct psmouse *psmouse, · line 867

Quoted 8 lines
drivers/input/mouse/synaptics.c +3 -2
@@ -862,8 +862,9 @@ static void synaptics_report_ext_buttons(struct psmouse *psmouse,
 	if (!SYN_CAP_MULTI_BUTTON_NO(priv->ext_cap))
 		return;
 
-	/* Bug in FW 8.1, buttons are reported only when ExtBit is 1 */
-	if (SYN_ID_FULL(priv->identity) == 0x801 &&
+	/* Bug in FW 8.1 & 8.2, buttons are reported only when ExtBit is 1 */
+	if (((SYN_ID_FULL(priv->identity) == 0x801) ||
+	     (SYN_ID_FULL(priv->identity) == 0x802)) &&

but dropped extra parenthesis...

Quoted 6 lines
drivers/input/mouse/synaptics.c +0 -0
 	    !((psmouse->packet[0] ^ psmouse->packet[3]) & 0x02))
 		return;
 
Signature · 1 line
2.5.0
Signature · 1 line
Dmitry