diff options
author | Wendly Li <wendlyli@google.com> | 2023-01-12 10:23:55 +0000 |
---|---|---|
committer | Wendly Li <wendlyli@google.com> | 2023-02-07 11:46:48 +0000 |
commit | 01bc79a67eafe0013dbbb9843301e6e1ba8b97ac (patch) | |
tree | 2c050505ef711f40bdfa24f2508efd09f052db5a /goodix_ts_core.c | |
parent | bef3cc4215fd8f5074eb3a021995a17b6c559666 (diff) | |
download | goodix_touch-01bc79a67eafe0013dbbb9843301e6e1ba8b97ac.tar.gz |
touch/goodix: Move heatmap read protection to GTI
Bug: 262053705
Bug: 267991839
Test: check heatmap works properly
Change-Id: I1a0dd4dc746037ad4f05e2734e73bce225af5ddd
Signed-off-by: Wendly Li <wendlyli@google.com>
Diffstat (limited to 'goodix_ts_core.c')
-rw-r--r-- | goodix_ts_core.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/goodix_ts_core.c b/goodix_ts_core.c index 3ad3b1a..7294aab 100644 --- a/goodix_ts_core.c +++ b/goodix_ts_core.c @@ -969,8 +969,7 @@ static int get_mutual_sensor_data( cmd->buffer = (u8 *)cd->mutual_data; cmd->size = tx * rx * sizeof(uint16_t); } else { - /* disable irq & close esd */ - cd->hw_ops->irq_enable(cd, false); + /* close esd */ goodix_ts_blocking_notify(NOTIFY_ESD_OFF, NULL); ret = -EINVAL; @@ -987,8 +986,7 @@ static int get_mutual_sensor_data( cmd->size = tx * rx * sizeof(uint16_t); } - /* enable irq & esd */ - cd->hw_ops->irq_enable(cd, true); + /* enable esd */ goodix_ts_blocking_notify(NOTIFY_ESD_ON, NULL); } return ret; @@ -2467,7 +2465,7 @@ static int goodix_ts_suspend(struct goodix_ts_core *core_data) ts_info("Suspend start"); atomic_set(&core_data->suspended, 1); /* disable irq */ - hw_ops->irq_enable(core_data, false); + hw_ops->disable_irq_nosync(core_data); /* * notify suspend event, inform the esd protector |