From 6015482e43bbb98ab13c652c228903a316782a7e Mon Sep 17 00:00:00 2001 From: zhangzhaopeng Date: Fri, 27 Sep 2024 10:09:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E9=AB=98TP=E7=A8=B3=E5=AE=9A=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../drivers/input/touchscreen/cst9220/hynitron_core.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lichee/linux-4.9/drivers/input/touchscreen/cst9220/hynitron_core.c b/lichee/linux-4.9/drivers/input/touchscreen/cst9220/hynitron_core.c index b17101ef2..d910f0c3d 100755 --- a/lichee/linux-4.9/drivers/input/touchscreen/cst9220/hynitron_core.c +++ b/lichee/linux-4.9/drivers/input/touchscreen/cst9220/hynitron_core.c @@ -901,8 +901,12 @@ FINGER_PROCESS: i2c_buf[2] = 0xAB; ret = cst3xx_i2c_write(hyn_ts_data->client, i2c_buf, 3); if(ret < 0) { - HYN_ERROR(" cst3xx hyn send read touch info ending failed.\r\n"); - goto OUT_PROCESS; + pr_emerg(" cst3xx hyn send read touch info ending failed.\r\n"); + /* don't drop the up event even if response to touch sensor fail */ + if (buf[0] != 0) + { + goto OUT_PROCESS; + } } #if (HYN_DEBUG_EN && (HYN_DEBUG_LEVEL == 2)) hyn_show_touch_buffer(buf, cnt);