]> git.baikalelectronics.ru Git - kernel.git/commit
Input: alps - ignore bad data on Dell Latitudes E6440 and E7440
authorPali Rohár <pali.rohar@gmail.com>
Sun, 9 Nov 2014 07:36:09 +0000 (23:36 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 14 Nov 2014 01:42:57 +0000 (17:42 -0800)
commit7f1b3248ead9d1ab191b7f9e91b8ecd1393365b8
tree790aeab0bb81b1b4fa198657f34c6efb1fbdd9b4
parenta26f91a0ec6a7d44a29fd0a2358a8f076b12628b
Input: alps - ignore bad data on Dell Latitudes E6440 and E7440

Sometimes on Dell Latitude laptops psmouse/alps driver receive invalid ALPS
protocol V3 packets with bit7 set in last byte. More often it can be
reproduced on Dell Latitude E6440 or E7440 with closed lid and pushing
cover above touchpad.

If bit7 in last packet byte is set then it is not valid ALPS packet. I was
told that ALPS devices never send these packets. It is not know yet who
send those packets, it could be Dell EC, bug in BIOS and also bug in
touchpad firmware...

With this patch alps driver does not process those invalid packets, but
instead of reporting PSMOUSE_BAD_DATA, getting into out of sync state,
getting back in sync with the next byte and spam dmesg we return
PSMOUSE_FULL_PACKET. If driver is truly out of sync we'll fail the checks
on the next byte and report PSMOUSE_BAD_DATA then.

Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Tested-by: Pali Rohár <pali.rohar@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/alps.c