[PATCH] Input: synaptics - give touchpad 1 second to settle after S2R

DORMANTno replies

From: Ahmet Inan <hidden>
Date: 2014-06-21 08:34:43
Subsystem: input (keyboard, mouse, joystick, touchscreen) drivers, the rest · Maintainers: Dmitry Torokhov, Linus Torvalds

Since we are resuming now in 0.5 Seconds, we have to give the touchpad
some time to settle before issuing a psmouse_reset.

This fixes the endless reconnect / resync cycle after resuming from S2R.

Signed-off-by: Ahmet Inan <redacted>
---
 drivers/input/mouse/synaptics.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c
index c5ec703..059fca0 100644
--- a/drivers/input/mouse/synaptics.c
+++ b/drivers/input/mouse/synaptics.c
@@ -1473,6 +1473,7 @@ static int synaptics_reconnect(struct psmouse *psmouse)
 	int retry = 0;
 	int error;
 
+	ssleep(1);
 	do {
 		psmouse_reset(psmouse);
 		if (retry) {
-- 
1.8.5.5
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help