diff options
author | Super Liu <supercjliu@google.com> | 2019-10-31 10:53:04 +0800 |
---|---|---|
committer | Super Liu <supercjliu@google.com> | 2019-10-31 06:27:46 +0000 |
commit | 4e8c1eaace5fccf1b0a35b3d0cd24738e5a61507 (patch) | |
tree | a2b53380e20d935a9f0afecc97ba51b5c73d5c17 /sec_ts_fw.c | |
parent | f33c56ad1cb50b6fdfa0ace9f067555290846ad8 (diff) | |
download | sec_touch-4e8c1eaace5fccf1b0a35b3d0cd24738e5a61507.tar.gz |
input: touchscreen: sec_touch: disable FW verification temporarily
Bug: 143182008
Change-Id: I0a07306c3433baea78bc25f300a87ba93fc04cb8
Merged-In: I0a07306c3433baea78bc25f300a87ba93fc04cb8
Signed-off-by: Super Liu <supercjliu@google.com>
(cherry picked from commit 10d80948e930a709adde745ef2d01849006aeadf)
Diffstat (limited to 'sec_ts_fw.c')
-rw-r--r-- | sec_ts_fw.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sec_ts_fw.c b/sec_ts_fw.c index c06b931..cba9fe2 100644 --- a/sec_ts_fw.c +++ b/sec_ts_fw.c @@ -12,6 +12,7 @@ #include "sec_ts.h" +#define SEC_TS_ENABLE_FW_VERIFY 0 #define SEC_TS_FW_BLK_SIZE 256 enum { @@ -526,6 +527,7 @@ err: return -EIO; } +#if SEC_TS_ENABLE_FW_VERIFY static int sec_ts_memoryblockread(struct sec_ts_data *ts, u32 mem_addr, int mem_size, u8 *buf) { int ret; @@ -622,6 +624,7 @@ static int sec_ts_memoryread(struct sec_ts_data *ts, u32 mem_addr, u8 *mem_data, return read_size; } +#endif static int sec_ts_chunk_update(struct sec_ts_data *ts, u32 addr, u32 size, u8 *data, int retry) { @@ -646,6 +649,7 @@ static int sec_ts_chunk_update(struct sec_ts_data *ts, u32 addr, u32 size, u8 *d goto err_write_fail; } +#if SEC_TS_ENABLE_FW_VERIFY if (sec_ts_memoryread(ts, addr, mem_rb, fw_size) >= 0) { u32 ii; @@ -669,6 +673,7 @@ static int sec_ts_chunk_update(struct sec_ts_data *ts, u32 addr, u32 size, u8 *d input_info(true, &ts->client->dev, "%s: verify done(%d)\n", __func__, ret); out: +#endif vfree(mem_rb); err_write_fail: sec_ts_delay(10); |