mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 11:33:28 +02:00
Input: elan_i2c - increase device reset wait timeout after update FW
Extend wait_for_completion_timeout from 300ms to 700ms to ensure sufficient time for device reset after firmware update. Signed-off-by: Jingle Wu <jingle.wu@emc.com.tw> Link: https://patch.msgid.link/KL1PR01MB5116031986614B3214EF2F30DC2C2@KL1PR01MB5116.apcprd01.prod.exchangelabs.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
96fe420beb
commit
8f9d6cd6d3
|
|
@ -690,7 +690,7 @@ static int elan_i2c_finish_fw_update(struct i2c_client *client,
|
|||
if (error) {
|
||||
dev_err(dev, "device reset failed: %d\n", error);
|
||||
} else if (!wait_for_completion_timeout(completion,
|
||||
msecs_to_jiffies(300))) {
|
||||
msecs_to_jiffies(700))) {
|
||||
dev_err(dev, "timeout waiting for device reset\n");
|
||||
error = -ETIMEDOUT;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user