Daniel Drake e4e6efd2df Input: psmouse - fix Synaptics detection when protocol is disabled
For configurations where Synaptics hardware is present but the Synaptics
extensions support is not compiled in, the mouse is reprobed and a new
device is allocated on every suspend/resume.

During probe, psmouse_switch_protocol() calls psmouse_extensions() with
set_properties=1. This calls the dummy synaptics_init() which returns an
error code, instructing us not to use the synaptics extensions.

During resume, psmouse_reconnect() calls psmouse_extensions() with
set_properties=0, in which case call to synaptics_init() is bypassed and
PSMOUSE_SYNAPTICS is returned. Since the result is different from previous
attempt psmouse_reconnect() fails and full re-probe happens.

Fix this by tweaking the set_properties=0 codepath in psmouse_extensions()
to be more careful about offering PSMOUSE_SYNAPTICS extensions.

Signed-off-by: Daniel Drake <dsd@laptop.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2010-01-07 01:53:30 -08:00
..
2009-12-11 11:55:21 -08:00
2009-12-13 21:23:33 +01:00
2009-12-11 11:55:21 -08:00
2009-12-02 01:13:11 -08:00
2009-12-14 00:26:26 +01:00
2009-12-09 17:14:38 +11:00
2009-12-14 00:26:08 +01:00
2009-12-13 21:23:33 +01:00
2009-12-13 21:23:33 +01:00
2009-12-13 21:23:33 +01:00