]> 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)
commit9cdba3b0b0f13cc1e0b65271bcdfb04d094186d8
tree5b059d18f611ff16d89084148d91ddb552dcd802
parent33a2ad9dafc93004cf9a010f423de253655fa154
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:

9ddb7e7b60a4db41a0022e7c1d2353e5b9811de0
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