]> git.baikalelectronics.ru Git - kernel.git/commit
Input: elants_i2c - check Remark ID when attempting firmware update
authorJohnny.Chuang <johnny.chuang@emc.com.tw>
Thu, 12 Dec 2019 17:32:45 +0000 (09:32 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 12 Dec 2019 17:40:56 +0000 (09:40 -0800)
commitaea417df1bf3bf7e9500de884612d0514f92daf5
tree6792fcbb0f30bb0cfbd20f2d09066f061746b7ac
parentee64fe37ff6c4cbdb504ecce32dc9cddeb6e52fa
Input: elants_i2c - check Remark ID when attempting firmware update

To avoid flashing incompatible firmware onto a device we should check
whether "Remark ID" in firmware matches with the one in the controller.
This function is supported by Elan's latest version of boot code, so the
driver decides whether to perform the check based on the boot code version.

Signed-off-by: Johnny Chuang <johnny.chuang@emc.com.tw>
Link: https://lore.kernel.org/r/00a901d5af3c$193e9cd0$4bbbd670$@emc.com.tw
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/elants_i2c.c