summaryrefslogtreecommitdiff
path: root/sec_ts_fw.c
diff options
context:
space:
mode:
authorSuper Liu <supercjliu@google.com>2019-11-08 11:49:46 +0800
committerSuper Liu <supercjliu@google.com>2019-11-08 04:11:13 +0000
commit4d2f367bc678c1adae0290c9bc8f112dc1b16f82 (patch)
tree87de2a02d8c1e31fc642151d887e5c235a2d190a /sec_ts_fw.c
parent8a5a22fabdf8f42d1629b59948012b485fcdfe33 (diff)
downloadsec_touch-4d2f367bc678c1adae0290c9bc8f112dc1b16f82.tar.gz
input: touchscreen: sec_touch: support FW recover when auto-update disabled
Bug: 143190673 Change-Id: I5b43fc6cb0732b909656f1097a3e719774a87151 Merged-In: I5b43fc6cb0732b909656f1097a3e719774a87151 Signed-off-by: Super Liu <supercjliu@google.com> (cherry picked from commit e4f44fa85950817a5b842c2552feca557557ee46)
Diffstat (limited to 'sec_ts_fw.c')
-rw-r--r--sec_ts_fw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sec_ts_fw.c b/sec_ts_fw.c
index cba9fe2..da59d0d 100644
--- a/sec_ts_fw.c
+++ b/sec_ts_fw.c
@@ -962,7 +962,7 @@ int sec_ts_firmware_update_on_probe(struct sec_ts_data *ts, bool force_update)
int ii = 0;
int ret = 0;
- if (ts->plat_data->bringup == 1) {
+ if (ts->plat_data->bringup == 1 && ts->is_fw_corrupted == false) {
input_err(true, &ts->client->dev, "%s: bringup. do not update\n", __func__);
return 0;
}
@@ -989,7 +989,7 @@ int sec_ts_firmware_update_on_probe(struct sec_ts_data *ts, bool force_update)
result = sec_ts_check_firmware_version(ts, fw_entry->data);
- if (ts->plat_data->bringup == 2) {
+ if (ts->plat_data->bringup == 2 && ts->is_fw_corrupted == false) {
input_err(true, &ts->client->dev, "%s: bringup. do not update\n", __func__);
result = 0;
goto err_request_fw;