Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1648148

[PATCH] Input: elan_i2c - Prevent breaking of FW updating from unexpected signal

From KT Liao <kt.liao@emc.com.tw>
Newsgroups linux.kernel
Subject [PATCH] Input: elan_i2c - Prevent breaking of FW updating from unexpected signal
Date 2017-05-23 16:50 +0200
Message-ID <tKjih-4vy-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH] Input: elan_i2c - Prevent breaking of FW updating from unexpected signal KT Liao <kt.liao@emc.com.tw> - 2017-05-23 16:50 +0200
  Re: [PATCH] Input: elan_i2c - Prevent breaking of FW updating from  unexpected signal Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2017-05-23 23:20 +0200
    RE: [PATCH] Input: elan_i2c - Prevent breaking of FW updating from unexpected signal 廖崇榮 <kt.liao@emc.com.tw> - 2017-05-24 11:00 +0200

csiph-web