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)
commita04f144059ac09f2c3da50b5707df589044aad66
tree69263772d3c8ea4c7d2fb0608975f4f68265d2d1
parent4b3c7dbbfff0673e8a89575414b864d8b001d3bb
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