linux/drivers/input/mouse
Anthony Martin 3f9db52dc8 Input: synaptics - fix device info appearing different on reconnect
User-modified input settings no longer survive a suspend/resume cycle.
Starting with 4.12, the touchpad is reinitialized on every reconnect
because the hardware appears to be different. This can be reproduced
by running the following as root:

    echo -n reconnect >/sys/devices/platform/i8042/serio1/drvctl

A line like the following will show up in dmesg:

    [30378.295794] psmouse serio1: synaptics: hardware appears to be
                   different: id(149271-149271), model(114865-114865),
                   caps(d047b3-d047b1), ext(b40000-b40000).

Note the single bit difference in caps: bit 1 (SYN_CAP_MULTIFINGER).

This happens because we modify our stored copy of the device info
capabilities when we enable advanced gesture mode but this change is
not reflected in the actual hardware capabilities.

It worked in the past because synaptics_query_hardware used to modify
the stored synaptics_device_info struct instead of filling in a new
one, as it does now.

Fix it by no longer faking the SYN_CAP_MULTIFINGER bit when setting
advanced gesture mode. This necessitated a small refactoring.

Fixes: 6c53694fb2 ("Input: synaptics - split device info into a separate structure")
Signed-off-by: Anthony Martin <ality@pbrane.org>
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2017-08-28 10:36:46 -07:00
..
Kconfig Input: synaptics - add support for Intertouch devices 2017-03-25 10:37:30 -07:00
Makefile Input: psmouse - add support for SMBus companions 2017-03-25 10:37:29 -07:00
alps.c Input: ALPS - fix two-finger scroll breakage in right side on ALPS touchpad 2017-08-24 15:53:46 -07:00
alps.h Input: ALPS - fix two-finger scroll breakage in right side on ALPS touchpad 2017-08-24 15:53:46 -07:00
amimouse.c
appletouch.c
atarimouse.c
bcm5974.c
byd.c
byd.h
cyapa.c
cyapa.h
cyapa_gen3.c
cyapa_gen5.c
cyapa_gen6.c
cypress_ps2.c
cypress_ps2.h
elan_i2c.h Input: elan_i2c - add support for fetching chip type on newer hardware 2017-05-11 17:44:23 -07:00
elan_i2c_core.c Input: elan_i2c - add ELAN0602 ACPI ID to support Lenovo Yoga310 2017-08-18 17:03:57 -07:00
elan_i2c_i2c.c Linux 4.12-rc3 2017-05-29 19:54:21 -07:00
elan_i2c_smbus.c Input: elan_i2c - add support for fetching chip type on newer hardware 2017-05-11 17:44:23 -07:00
elantech.c Merge branch 'next' into for-linus 2017-07-06 13:51:43 -07:00
elantech.h
focaltech.c
focaltech.h
gpio_mouse.c
hgpk.c
hgpk.h
inport.c Annotate hardware config module parameters in drivers/input/ 2017-04-20 12:02:32 +01:00
lifebook.c
lifebook.h
logibm.c Annotate hardware config module parameters in drivers/input/ 2017-04-20 12:02:32 +01:00
logips2pp.c
logips2pp.h
maplemouse.c
navpoint.c
pc110pad.c
psmouse-base.c Input: synaptics - add support for Intertouch devices 2017-03-25 10:37:30 -07:00
psmouse-smbus.c Input: psmouse - use i2c_client_type to locate i2c clients 2017-04-03 12:03:55 -07:00
psmouse.h Input: synaptics - add support for Intertouch devices 2017-03-25 10:37:30 -07:00
pxa930_trkball.c
rpcmouse.c
sentelic.c
sentelic.h
sermouse.c
synaptics.c Input: synaptics - fix device info appearing different on reconnect 2017-08-28 10:36:46 -07:00
synaptics.h Input: synaptics - use u8 instead of unsigned char 2017-04-03 16:23:58 -07:00
synaptics_i2c.c Input: synaptics_i2c - add OF device ID table 2017-03-23 14:46:32 -07:00
synaptics_usb.c
touchkit_ps2.c
touchkit_ps2.h
trackpoint.c Input: trackpoint - add new trackpoint firmware ID 2017-08-18 17:04:11 -07:00
trackpoint.h Input: trackpoint - add new trackpoint firmware ID 2017-08-18 17:04:11 -07:00
vmmouse.c
vmmouse.h
vsxxxaa.c