android_kernel_xiaomi_sm8350/drivers/input
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
..
gameport
joystick Input: gf2k - fix &&/|| confusion in gf2k_connect() 2010-01-01 18:45:52 -08:00
keyboard Input: davinci_keyscan - add device_enable method to platform data 2010-01-06 00:17:11 -08:00
misc Input: twl4030-pwrbutton - switch to using threaded IRQ 2009-12-29 23:20:49 -08:00
mouse Input: psmouse - fix Synaptics detection when protocol is disabled 2010-01-07 01:53:30 -08:00
serio Input: serio - do not mark kseriod freezable anymore 2009-12-24 21:43:06 -08:00
tablet Input: wacom - separate pen from express keys on Graphire 2009-12-15 00:36:20 -08:00
touchscreen Input: add mc13783 touchscreen driver 2009-12-15 08:54:51 -08:00
apm-power.c
evbug.c
evdev.c Input: evdev - be less aggressive about sending SIGIO notifies 2010-01-06 00:17:04 -08:00
ff-core.c Input: fix memory leak in force feedback core 2009-12-04 22:16:38 -08:00
ff-memless.c Input: ff-memless - add notion of direction to for rumble effects 2009-12-24 21:54:29 -08:00
fixp-arith.h
input-compat.c
input-compat.h
input-polldev.c Input: add generic support for sparse keymaps 2009-12-07 09:26:35 -08:00
input.c Input: document use of input_event() function 2009-12-11 23:48:49 -08:00
joydev.c headers: remove sched.h from poll.h 2009-10-04 15:05:10 -07:00
Kconfig Merge branch 'xen/fbdev' of git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen 2009-12-10 09:34:40 -08:00
Makefile Input: add generic support for sparse keymaps 2009-12-07 09:26:35 -08:00
mousedev.c headers: remove sched.h from poll.h 2009-10-04 15:05:10 -07:00
sparse-keymap.c Input: add generic support for sparse keymaps 2009-12-07 09:26:35 -08:00
xen-kbdfront.c xen: move Xen-testing predicates to common header 2009-11-04 08:47:24 -08:00