From: KT Liao Date: Fri, 22 Sep 2017 17:00:57 +0000 (-0700) Subject: Input: elan_i2c - extend Flash-Write delay X-Git-Tag: v4.14-rc2~14^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=05f5c38576475439f3124a3e6d62db68de83f7be;p=platform%2Fkernel%2Flinux-rpi.git Input: elan_i2c - extend Flash-Write delay The original 20ms delay is only marginally enough delay after a block write operation during firmware update. Let's increase the delay to ensure that the controller finishes up storing the page to avoid failures in the firmware updates. Signed-off-by: KT Liao Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/mouse/elan_i2c_i2c.c b/drivers/input/mouse/elan_i2c_i2c.c index 15b1330..e19eb60 100644 --- a/drivers/input/mouse/elan_i2c_i2c.c +++ b/drivers/input/mouse/elan_i2c_i2c.c @@ -598,7 +598,7 @@ static int elan_i2c_write_fw_block(struct i2c_client *client, } /* Wait for F/W to update one page ROM data. */ - msleep(20); + msleep(35); error = elan_i2c_read_cmd(client, ETP_I2C_IAP_CTRL_CMD, val); if (error) {