]> git.hungrycats.org Git - linux/commitdiff
drivers: staging: nvec: remove bogus reset command for PS/2 interface
authorPaul Fertser <fercerpav@gmail.com>
Thu, 27 Oct 2016 14:22:08 +0000 (17:22 +0300)
committerJiri Slaby <jslaby@suse.cz>
Thu, 24 Nov 2016 15:23:44 +0000 (16:23 +0100)
commit d8f8a74d5fece355d2234e1731231d1aebc66b38 upstream.

This command was sent behind serio's back and the answer to it was
confusing atkbd probe function which lead to the elantech touchpad
getting detected as a keyboard.

To prevent this from happening just let every party do its part of the
job.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Acked-by: Marc Dietrich <marvin24@gmx.de>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/staging/nvec/nvec_ps2.c

index 06dbb02085a936c52ee97bec1787da0ec92179d4..89bfc0625be78675a3881f04f1b74d3bac02ab72 100644 (file)
@@ -104,7 +104,6 @@ static int nvec_mouse_probe(struct platform_device *pdev)
 {
        struct nvec_chip *nvec = dev_get_drvdata(pdev->dev.parent);
        struct serio *ser_dev;
-       char mouse_reset[] = { NVEC_PS2, SEND_COMMAND, PSMOUSE_RST, 3 };
 
        ser_dev = kzalloc(sizeof(struct serio), GFP_KERNEL);
        if (ser_dev == NULL)
@@ -125,9 +124,6 @@ static int nvec_mouse_probe(struct platform_device *pdev)
 
        serio_register_port(ser_dev);
 
-       /* mouse reset */
-       nvec_write_async(nvec, mouse_reset, sizeof(mouse_reset));
-
        return 0;
 }