diff mbox

psmouse: reset during probe?

Message ID 20170517205950.27449-1-drake@endlessm.com (mailing list archive)
State New, archived
Headers show

Commit Message

Daniel Drake May 17, 2017, 8:59 p.m. UTC
Hi,

A bunch of new Acer laptops have an EC which expects the PS/2 reset command
before the touchpad is initialized.

On Linux, that means that currently the touchpad is unresponsive until
suspend/resume, when psmouse_reconnect() resets the device.

It appears that Windows sends the reset command during boot. Should Linux
do the same for all mice here?

Thanks
Daniel

---
 drivers/input/mouse/psmouse-base.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/drivers/input/mouse/psmouse-base.c b/drivers/input/mouse/psmouse-base.c
index 9f6203c8577c..0e506427ae91 100644
--- a/drivers/input/mouse/psmouse-base.c
+++ b/drivers/input/mouse/psmouse-base.c
@@ -1546,6 +1546,7 @@  static int psmouse_connect(struct serio *serio, struct serio_driver *drv)
 	psmouse->resync_time = parent ? 0 : psmouse_resync_time;
 	psmouse->smartscroll = psmouse_smartscroll;
 
+	psmouse_reset(psmouse);
 	psmouse_switch_protocol(psmouse, NULL);
 
 	psmouse_set_state(psmouse, PSMOUSE_CMD_MODE);