summaryrefslogtreecommitdiff
path: root/goodix_brl_hw.c
diff options
context:
space:
mode:
authorWendly Li <wendlyli@google.com>2022-05-26 17:03:49 +0000
committerWendly Li <wendlyli@google.com>2022-05-31 08:37:04 +0000
commit6a932c36eed766e8239c4b348f5e9d4450fe6532 (patch)
tree9ecd6546ae0a706a9e8a4014f7b1bd453d2d6106 /goodix_brl_hw.c
parent6afb5c204b55caaa2c87d5600b285c26bc61670f (diff)
downloadgoodix_touch-6a932c36eed766e8239c4b348f5e9d4450fe6532.tar.gz
goodix: fix deadlock
Bug: 234314582 Test: while true; do echo 1 > wakelock; echo 0 > wakelock; done Change-Id: I3dc6d41a8ba24b90b698a260f6e6ba0a7640609f Signed-off-by: Wendly Li <wendlyli@google.com>
Diffstat (limited to 'goodix_brl_hw.c')
-rw-r--r--goodix_brl_hw.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/goodix_brl_hw.c b/goodix_brl_hw.c
index a91db4e..91d933b 100644
--- a/goodix_brl_hw.c
+++ b/goodix_brl_hw.c
@@ -1503,8 +1503,6 @@ int brl_set_heatmap_enabled(struct goodix_ts_core *cd, bool enabled)
{
struct goodix_ts_cmd cmd;
- cd->hw_ops->irq_enable(cd, false);
-
cmd.cmd = GOODIX_CMD_SET_HEATMAP_ENABLED;
cmd.len = 5;
cmd.data[0] = enabled ? 2 : 0;
@@ -1512,7 +1510,6 @@ int brl_set_heatmap_enabled(struct goodix_ts_core *cd, bool enabled)
ts_err("failed to set heatmap enabled: %s",
enabled ? "enabled" : "disabled");
- cd->hw_ops->irq_enable(cd, true);
return 0;
}