linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Input: elan_i2c - Prevent breaking of FW updating from unexpected signal
@ 2017-05-23 14:32 KT Liao
  2017-05-23 21:13 ` Dmitry Torokhov
  0 siblings, 1 reply; 4+ messages in thread
From: KT Liao @ 2017-05-23 14:32 UTC (permalink / raw)
  To: linux-kernel, linux-input, dmitry.torokhov; +Cc: phoenix, kt.liao

Use wait_for_completion_timeout to prevent breaking of FW updating from unexpected signal

Signed-off-by: KT Liao <kt.liao@emc.com.tw>
---
 drivers/input/mouse/elan_i2c_i2c.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/input/mouse/elan_i2c_i2c.c b/drivers/input/mouse/elan_i2c_i2c.c
index 3be75c6e..34356c7 100644
--- a/drivers/input/mouse/elan_i2c_i2c.c
+++ b/drivers/input/mouse/elan_i2c_i2c.c
@@ -619,7 +619,7 @@ static int elan_i2c_finish_fw_update(struct i2c_client *client,
 
 	error = elan_i2c_write_cmd(client, ETP_I2C_STAND_CMD, ETP_I2C_RESET);
 	if (!error)
-		ret = wait_for_completion_interruptible_timeout(completion,
+		ret = wait_for_completion_timeout(completion,
 							msecs_to_jiffies(300));
 	disable_irq(client->irq);
 
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-05-25 17:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-23 14:32 [PATCH] Input: elan_i2c - Prevent breaking of FW updating from unexpected signal KT Liao
2017-05-23 21:13 ` Dmitry Torokhov
2017-05-24  8:53   ` 廖崇榮
2017-05-25 17:09     ` 'Dmitry Torokhov'

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).