diff options
author | Wendly Li <wendlyli@google.com> | 2023-05-03 16:22:05 +0000 |
---|---|---|
committer | Wendly Li <wendlyli@google.com> | 2023-05-03 16:27:06 +0000 |
commit | 816f25f6bc82bf066db3a7ede94df85e0754db71 (patch) | |
tree | 4f5d9e775e12e9fddb6fdb0f0045e19f6676145f | |
parent | 478cbf17ce01297c08e17f96216552ff1d4b5f93 (diff) | |
download | goodix_touch-816f25f6bc82bf066db3a7ede94df85e0754db71.tar.gz |
touch/goodix: fix deadlock between gti and goodix
Bug: 280110768
Test: tap screen and cat ss_diff
Change-Id: Ibbaad2bc0c388630b89b161ab8af6a9b47d05f7f
Signed-off-by: Wendly Li <wendlyli@google.com>
-rw-r--r-- | goodix_ts_core.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/goodix_ts_core.c b/goodix_ts_core.c index 93451f4..3c40a78 100644 --- a/goodix_ts_core.c +++ b/goodix_ts_core.c @@ -872,8 +872,7 @@ static int get_self_sensor_data( cmd->buffer = (u8 *)cd->self_sensing_data; cmd->size = (tx + rx) * sizeof(uint16_t); } else { - /* disable irq & close esd */ - cd->hw_ops->irq_enable(cd, false); + /* disable esd */ goodix_ts_esd_off(cd); ret = -EINVAL; @@ -890,8 +889,7 @@ static int get_self_sensor_data( cmd->size = (tx + rx) * sizeof(uint16_t); } - /* enable irq & esd */ - cd->hw_ops->irq_enable(cd, true); + /* enable esd */ goodix_ts_esd_on(cd); } return ret; |