]> git.baikalelectronics.ru Git - kernel.git/commit
Input: elants_i2c - disable idle mode before updating firmware
authorJames Chen <james.chen@emc.com.tw>
Mon, 20 Jul 2015 18:16:36 +0000 (11:16 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 5 Aug 2015 18:09:56 +0000 (11:09 -0700)
commit17e9f9de2bdb6f0760e5d0b4092a5de6dd23b22c
tree190d6c50cca8b128870fa9c627b454e0c805d2d0
parent85ce60df6cf8e22dc0ba2612ce4cd00d2f6c0f1b
Input: elants_i2c - disable idle mode before updating firmware

If the device is in idle mode and is in the middle of a scan it may not
have a chance to react to the reset and then IAP commands within required
time interval and firmware update may fail. Let's bring the device out of
idle mode before attempting to reset it so that the scan period is smaller
and thus it can react to the command quicker.

Signed-off-by: James Chen <james.chen@emc.com.tw>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/elants_i2c.c