]> 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)
commit785d225a3f6890fc9838526fa042a7ef62c43e81
tree6792fcbb0f30bb0cfbd20f2d09066f061746b7ac
parenta2ccd7e07885d4773a997897e0071a18c8c7d1b5
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