diff options
author | Super Liu <supercjliu@google.com> | 2021-07-01 07:03:32 +0000 |
---|---|---|
committer | TreeHugger Robot <treehugger-gerrit@google.com> | 2021-07-01 10:20:32 +0000 |
commit | f1b2a539189aa143dd0899d81c095800c36e7d99 (patch) | |
tree | e1d70408b587663fdf14ef33988b4860b83f35d6 | |
parent | 855cab2a665a299192d58c1db39fa586fb5ed273 (diff) | |
download | sec_touch-f1b2a539189aa143dd0899d81c095800c36e7d99.tar.gz |
touch/sec: defer probe if FW initialization failed
Bug: 191951449
Signed-off-by: Super Liu <supercjliu@google.com>
Change-Id: Ic4fcf2eda884ee44df5813f723af81bd3741b403
-rw-r--r-- | sec_ts.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -4263,6 +4263,7 @@ static int sec_ts_probe(struct spi_device *client) if (ts->is_fw_corrupted == false) { switch (sec_ts_fw_init(ts)) { case SEC_TS_ERR_INIT: + ret = -EPROBE_DEFER; goto err_init; case SEC_TS_ERR_ALLOC_FRAME: goto err_allocate_frame; |