Input: psmouse - add small delay for IBM trackpoint pass-through mode
Subsystems (2)
PATCH 1/1 Input: psmouse - add small delay for IBM trackpoint pass-through mode
There are trackpoint devices that fail to respond to the PS2 command PSMOUSE_CMD_GETID if immediately queried after the parent device is deactivated. Add a small delay for the hardware to get in a sane state before sending any PS2 commands.
One example of such a system is:
Lenovo ThinkPad X120e, model 30515QG
synaptics: Touchpad model: 1, fw: 8.0, id: 0x1e2b1, caps: 0xd001a3/0x940300/0x121c00, board id: 1811, fw id: 797391
--- drivers/input/mouse/psmouse-base.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/input/mouse/psmouse-base.c +4 -0
@@ -1540,6 +1540,10 @@ static int psmouse_connect(struct serio *serio, struct serio_driver *drv)if (error) goto err_clear_drvdata; +/* give PT device some time to settle down before probing */ +if (serio->id.type ==SERIO_PS_PSTHRU ) +usleep_range (10000 ,15000 ); +if (psmouse_probe (psmouse) <0 ) { error = -ENODEV ; goto err_close_serio;
Signature · 1 line
2.4.3
Quoted 10 lines · Stefan Assmann
There are trackpoint devices that fail to respond to the PS2 command
PSMOUSE_CMD_GETIDif immediately queried after the parent device is deactivated. Add a small delay for the hardware to get in a sane state before sending any PS2 commands.One example of such a system is:
Lenovo ThinkPad X120e, model 30515QG
synaptics: Touchpad model: 1, fw: 8.0, id:0x1e2b1, caps: 0xd001a3/0x940300/0x121c00, board id: 1811, fw id: 797391Signed-off-by Stefan Assmann <[email protected]>
Applied, thank you.
Quoted 22 lines
--- drivers/input/mouse/psmouse-base.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/input/mouse/psmouse-base.c +4
-0@@ -1540,6 +1540,10 @@ static int psmouse_connect(struct serio *serio, struct serio_driver *drv)if (error) goto err_clear_drvdata; +/* give PT device some time to settle down before probing */ +if (serio->id.type ==SERIO_PS_PSTHRU ) +usleep_range (10000 ,15000 ); +if (psmouse_probe (psmouse) <0 ) { error = -ENODEV ; goto err_close_serio;Signature · 1 line
2.4.3
Signature · 1 line
Dmitry