diff options
| author | HungNien Chen <hn.chen@weidahitech.com> | 2016-09-05 13:25:36 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2016-09-05 13:31:47 -0400 |
| commit | 4e7482332236d9f0c8f6df2e80fd73ad68363c35 (patch) | |
| tree | 6b273bd38077486022094f86f7983b1464737f0d /drivers/input/touchscreen | |
| parent | de56bea05b09aa1f3498ee12df8f995aaf259dd7 (diff) | |
Input: wdt87xx_i2c - fix the flash erase issue
The spec says that flash erase time is 30ms typical/200ms max, so let's
replace current 50ms wait with 200ms to avoid potential failures.
Signed-off-by: HungNien Chen <hn.chen@weidahitech.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/touchscreen')
| -rw-r--r-- | drivers/input/touchscreen/wdt87xx_i2c.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/input/touchscreen/wdt87xx_i2c.c b/drivers/input/touchscreen/wdt87xx_i2c.c index 73861ad22df4..a9132603ab34 100644 --- a/drivers/input/touchscreen/wdt87xx_i2c.c +++ b/drivers/input/touchscreen/wdt87xx_i2c.c | |||
| @@ -23,7 +23,7 @@ | |||
| 23 | #include <asm/unaligned.h> | 23 | #include <asm/unaligned.h> |
| 24 | 24 | ||
| 25 | #define WDT87XX_NAME "wdt87xx_i2c" | 25 | #define WDT87XX_NAME "wdt87xx_i2c" |
| 26 | #define WDT87XX_DRV_VER "0.9.7" | 26 | #define WDT87XX_DRV_VER "0.9.8" |
| 27 | #define WDT87XX_FW_NAME "wdt87xx_fw.bin" | 27 | #define WDT87XX_FW_NAME "wdt87xx_fw.bin" |
| 28 | #define WDT87XX_CFG_NAME "wdt87xx_cfg.bin" | 28 | #define WDT87XX_CFG_NAME "wdt87xx_cfg.bin" |
| 29 | 29 | ||
| @@ -157,6 +157,7 @@ | |||
| 157 | /* Controller requires minimum 300us between commands */ | 157 | /* Controller requires minimum 300us between commands */ |
| 158 | #define WDT_COMMAND_DELAY_MS 2 | 158 | #define WDT_COMMAND_DELAY_MS 2 |
| 159 | #define WDT_FLASH_WRITE_DELAY_MS 4 | 159 | #define WDT_FLASH_WRITE_DELAY_MS 4 |
| 160 | #define WDT_FLASH_ERASE_DELAY_MS 200 | ||
| 160 | #define WDT_FW_RESET_TIME 2500 | 161 | #define WDT_FW_RESET_TIME 2500 |
| 161 | 162 | ||
| 162 | struct wdt87xx_sys_param { | 163 | struct wdt87xx_sys_param { |
| @@ -726,7 +727,7 @@ static int wdt87xx_write_firmware(struct i2c_client *client, const void *chunk) | |||
| 726 | break; | 727 | break; |
| 727 | } | 728 | } |
| 728 | 729 | ||
| 729 | msleep(50); | 730 | msleep(WDT_FLASH_ERASE_DELAY_MS); |
| 730 | 731 | ||
| 731 | error = wdt87xx_write_data(client, data, start_addr, | 732 | error = wdt87xx_write_data(client, data, start_addr, |
| 732 | page_size); | 733 | page_size); |
