[PATCH 0/1] input: cypress_ps2: Don't report the cypress PS/2 trackpads

STALE4567d

2 messages, 1 author, 2014-03-31 · open the first message on its own page

[PATCH 0/1] input: cypress_ps2: Don't report the cypress PS/2 trackpads

From: Hans de Goede <hidden>
Date: 2014-03-31 09:08:55

Hi All,

This is a resend with "Cc: stable@vger.kernel.org" added as I had forgotten
to do that on the original patch, and we do want this backported to older
kernels.

This patch has already been queued up for 3.15 in Dmitry Torokhov input git'
tree, in the for-linux branch. So for any other purposes then getting this
on the radar for stable this re-send can be ignored.

Thanks & Regards,

Hans

[PATCH] input: cypress_ps2: Don't report the cypress PS/2 trackpads as a button pad

From: Hans de Goede <hidden>
Date: 2014-03-31 09:09:02

The cypress PS/2 trackpad models supported by the cypress_ps2 driver emulate
BTN_RIGHT events in firmware based on the finger position, as part of this
no motion events are sent when the finger is in the button area.

The INPUT_PROP_BUTTONPAD property is there to indicate to userspace that
BTN_RIGHT events should be emulated in userspace, which is not necessary
in this case.

When INPUT_PROP_BUTTONPAD is advertised userspace will wait for a motion event
before propagating the button event higher up the stack, as it needs current
abs x + y data for its BTN_RIGHT emulation. Since in the cypress_ps2 pads
don't report motion events in the button area, this means that clicks in the
button area end up being ignored, so INPUT_PROP_BUTTONPAD actually causes
problems for these touchpads, and removing it fixes:

https://bugs.freedesktop.org/show_bug.cgi?id=76341

Reported-by: Adam Williamson <redacted>
Tested-by: Adam Williamson <redacted>
Reviewed-by: Peter Hutterer <redacted>
Cc: Adam Williamson <redacted>
Cc: Peter Hutterer <redacted>
Signed-off-by: Hans de Goede <redacted>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: stable@vger.kernel.org
---
 drivers/input/mouse/cypress_ps2.c | 1 -
 1 file changed, 1 deletion(-)
diff --git a/drivers/input/mouse/cypress_ps2.c b/drivers/input/mouse/cypress_ps2.c
index 87095e2..8af34ff 100644
--- a/drivers/input/mouse/cypress_ps2.c
+++ b/drivers/input/mouse/cypress_ps2.c
@@ -409,7 +409,6 @@ static int cypress_set_input_params(struct input_dev *input,
 	__clear_bit(REL_X, input->relbit);
 	__clear_bit(REL_Y, input->relbit);
 
-	__set_bit(INPUT_PROP_BUTTONPAD, input->propbit);
 	__set_bit(EV_KEY, input->evbit);
 	__set_bit(BTN_LEFT, input->keybit);
 	__set_bit(BTN_RIGHT, input->keybit);
-- 
1.9.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help