]> git.baikalelectronics.ru Git - kernel.git/commit
Input: elan_i2c - ignore signals when finishing updating firmware
authorKT Liao <kt.liao@emc.com.tw>
Tue, 23 May 2017 20:41:47 +0000 (13:41 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 25 May 2017 17:11:45 +0000 (10:11 -0700)
commitb9de73a3f1d65d982b70ec22c624a95d1991f903
tree69263772d3c8ea4c7d2fb0608975f4f68265d2d1
parent7adba834cae9057c92bcd89a2319f43c72d4d336
Input: elan_i2c - ignore signals when finishing updating firmware

Use wait_for_completion_timeout() instead of
wait_for_completion_interruptible_timeout() to avoid stray signals ruining
firmware update. Our timeout is only 300 msec so we are fine simply letting
it expire in case device misbehaves.

Signed-off-by: KT Liao <kt.liao@emc.com.tw>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/elan_i2c_i2c.c