summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuper Liu <supercjliu@google.com>2021-07-01 07:03:32 +0000
committerTreeHugger Robot <treehugger-gerrit@google.com>2021-07-01 10:20:32 +0000
commitf1b2a539189aa143dd0899d81c095800c36e7d99 (patch)
treee1d70408b587663fdf14ef33988b4860b83f35d6
parent855cab2a665a299192d58c1db39fa586fb5ed273 (diff)
downloadsec_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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sec_ts.c b/sec_ts.c
index da422e7..384d3ea 100644
--- a/sec_ts.c
+++ b/sec_ts.c
@@ -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;