Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac84eba2 authored by Ulrik De Bie's avatar Ulrik De Bie Committed by Dmitry Torokhov
Browse files

Input: elantech - reset the device when elantech probe fails



elantech_init() calls elantech_set_absolute_mode which sets the driver in
an absolute mode. When after this the elantech_init fails, it is best to
turn the ps/2 mouse emulation mode back on by calling psmouse_reset() so
that it can work as a regular mouse.

Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarUlrik De Bie <ulrik.debie-os@e2big.org>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent a9e06219
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1506,6 +1506,7 @@ int elantech_init(struct psmouse *psmouse)
	return 0;

 init_fail:
	psmouse_reset(psmouse);
	kfree(etd);
	return -1;
}