touch/goodix: fix deadlock between gti and goodix Bug: 289696186 Test: tap screen and cat ss_diff Change-Id: Ibbaad2bc0c388630b89b161ab8af6a9b47d05f7f Signed-off-by: Wendly Li <[email protected]>
diff --git a/goodix_ts_core.c b/goodix_ts_core.c index e42836c..13ef6ff 100644 --- a/goodix_ts_core.c +++ b/goodix_ts_core.c
@@ -1004,8 +1004,7 @@ 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_blocking_notify(NOTIFY_ESD_OFF, NULL); ret = -EINVAL; @@ -1022,8 +1021,7 @@ 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;