]> git.baikalelectronics.ru Git - kernel.git/commit
Input: elantech - fix packet check for v3 and v4 hardware
authorMatteo Delfino <kendatsuba@gmail.com>
Thu, 15 Aug 2013 07:09:41 +0000 (00:09 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 25 Aug 2013 00:52:35 +0000 (17:52 -0700)
commit6b1eb85334d6ae9b4a71ead10f46276a496e7803
tree5b059d18f611ff16d89084148d91ddb552dcd802
parent8df5fa0a21d5774091faf67f2431d05afa8bf186
Input: elantech - fix packet check for v3 and v4 hardware

The signatures of v3 and v4 packets change depending on the value of a
hardware flag called 'crc_enabled'. The packet type detection must change
accordingly.

This patch also restores a consistency check for v4 packets inadvertently
removed by commit:

8170d46e0ccc10d258501a5a155ae9adf6a752c2
Input: elantech - fix for newer hardware versions (v7)

A note about the naming convention: v3 hardware is associated with IC body
v5 while v4 hardware is associated with IC body v6 and v7. The above commit
refers to IC body v7, not to v7 hardware.

Tested on Samsung NP730U3E (fw = 0x675f05, ICv7, crc_enabled = 1)

Tested-by: Giovanni Frigione <gio.frigione@gmail.com>
Signed-off-by: Matteo Delfino <kendatsuba@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/elantech.c
drivers/input/mouse/elantech.h