Input: synaptics - handle spurious release of trackstick buttons, again
Subsystems (2)
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.
Signed-off-by Benjamin Tissoires <[email protected]>
--- drivers/input/mouse/synaptics.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
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 )) && !((psmouse->packet[0 ] ^ psmouse->packet[3 ]) &0x02 ))return ;
Signature · 1 line
2.5.0
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.
Signed-off-by Benjamin Tissoires <[email protected]>--- drivers/input/mouse/synaptics.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)drivers/input/mouse/synaptics.c +3
-3@@ -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
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
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