linux-uconsole/drivers/input
Pali Rohár abf9765d3b Input: alps - allow up to 2 invalid packets without resetting device
commit 9d720b34c0 upstream.

On some Dell Latitude laptops ALPS device or Dell EC send one invalid byte
in 6 bytes ALPS packet. In this case psmouse driver enter out of sync
state. It looks like that all other bytes in packets are valid and also
device working properly. So there is no need to do full device reset, just
need to wait for byte which match condition for first byte (start of
packet). Because ALPS packets are bigger (6 or 8 bytes) default limit is
small.

This patch increase number of invalid bytes to size of 2 ALPS packets which
psmouse driver can drop before do full reset.

Resetting ALPS devices take some time and when doing reset on some Dell
laptops touchpad, trackstick and also keyboard do not respond. So it is
better to do it only if really necessary.

Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Tested-by: Pali Rohár <pali.rohar@gmail.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-11-21 09:22:54 -08:00
..
gameport Input: remove use of __devexit 2012-11-24 00:05:38 -08:00
joystick Input: xpad - add signature for Razer Onza Classic Edition 2013-12-20 07:45:06 -08:00
keyboard Input: atkbd - do not try 'deactivate' keyboard on any LG laptops 2014-10-05 14:54:12 -07:00
misc Input - arizona-haptics: Fix double lock of dapm_mutex 2014-03-06 21:30:12 -08:00
mouse Input: alps - allow up to 2 invalid packets without resetting device 2014-11-21 09:22:54 -08:00
serio Input: i8042 - quirks for Fujitsu Lifebook A544 and Lifebook AH544 2014-11-14 08:47:56 -08:00
tablet Input: wacom - make sure touch_max is set for touch devices 2014-03-31 09:58:14 -07:00
touchscreen Input: usbtouchscreen - separate report and transmit buffer size handling 2013-12-20 07:45:08 -08:00
apm-power.c Input: random formatting fixes 2012-08-21 22:29:49 -07:00
evbug.c
evdev.c Input: evdev - fall back to vmalloc for client event buffer 2013-12-04 10:57:18 -08:00
ff-core.c Input: random formatting fixes 2012-08-21 22:29:49 -07:00
ff-memless.c Input: random formatting fixes 2012-08-21 22:29:49 -07:00
input-compat.c compat: Use COMPAT_USE_64BIT_TIME in the input subsystem 2012-02-20 12:48:47 -08:00
input-compat.h compat: Use COMPAT_USE_64BIT_TIME in the input subsystem 2012-02-20 12:48:47 -08:00
input-mt.c Input: MT - handle semi-mt devices in core 2013-04-07 21:02:32 -07:00
input-polldev.c Merge commit 'v3.2-rc3' into next 2011-11-29 01:51:07 -08:00
input.c Input: fix defuzzing logic 2014-07-31 12:53:50 -07:00
joydev.c Input: fix use-after-free introduced with dynamic minor changes 2012-10-22 08:50:37 +03:00
Kconfig Input: mousedev - allow disabling even without CONFIG_EXPERT 2013-12-11 22:36:28 -08:00
Makefile Input: matrix-keymap - uninline and prepare for device tree support 2012-05-10 22:38:47 -07:00
matrix-keymap.c input: Export matrix_keypad_parse_of_params() 2013-04-19 00:31:13 +02:00
mousedev.c Input: mousedev - fix race when creating mixed device 2014-04-03 12:01:04 -07:00
sparse-keymap.c Input: random formatting fixes 2012-08-21 22:29:49 -07:00