summaryrefslogtreecommitdiff
path: root/goodix_ts_core.h
diff options
context:
space:
mode:
authorWendly Li <wendlyli@google.com>2023-02-16 08:36:54 +0000
committerWendly Li <wendlyli@google.com>2023-02-22 06:22:54 +0000
commit9a1bdd15f21249e755ef38ce2439e6ca407ca54c (patch)
treea96d3dee384d9ae7b5986e02425204a14a7b8eec /goodix_ts_core.h
parent01bc79a67eafe0013dbbb9843301e6e1ba8b97ac (diff)
downloadgoodix_touch-9a1bdd15f21249e755ef38ce2439e6ca407ca54c.tar.gz
touch/goodix: fix double reset
ESD check will fail on firmware reset. When ESD check is failed, it will reset firmware again. Skip ESD check to avoid double reset. Double reset may cause self-test failure and other unexpected issues. Bug: 267991839 Test: Check self-test works properly Change-Id: I17063445e71832077766d3d9aa3e6457f4b9e4b7 Signed-off-by: Wendly Li <wendlyli@google.com>
Diffstat (limited to 'goodix_ts_core.h')
-rw-r--r--goodix_ts_core.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/goodix_ts_core.h b/goodix_ts_core.h
index 06e089e..44f136c 100644
--- a/goodix_ts_core.h
+++ b/goodix_ts_core.h
@@ -679,9 +679,10 @@ struct goodix_ts_hw_ops {
* @esd_work: esd delayed work
* @esd_on: 1 - turn on esd protection, 0 - turn
* off esd protection
+ * @skip_once: skip once if the check is no need this time.
*/
struct goodix_ts_esd {
- bool irq_status;
+ bool skip_once;
atomic_t esd_on;
struct delayed_work esd_work;
struct notifier_block esd_notifier;