From e4066563c510868d488e737a8e841ebd9f35eb5d Mon Sep 17 00:00:00 2001 From: Xiaojun Lv Date: Fri, 17 Feb 2023 15:26:43 +0800 Subject: [PATCH] input: fix ili7807s touch dislocation when aging test Problem: aging test, touch dislocation. Cause: during the boot process, when the rst pin is pulled, the int pin will also be pulled down, and the system respond to the interrupt in advance, but at this time there is no firmware in the IC, which will trigger esd recovery to reload the firmware. The resolution information is stored in the firmware, but the firmware path has not been assigned at this time, and the firmware cannot be applied, resulting in the upgrade failure. If the resolution cannot be obtained, the default resolution will be used, which will lead to incorrect resolution setting. Solution: during the boot process, only after the firmware upgrade successfully, system can response to interrupts. Change-Id: I0ad032de0b96ed86177a9aa4a16f9aa87613042d Reviewed-on: https://gerrit.mot.com/2514709 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jun Weng Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- drivers/input/touchscreen/ili9882_mmi/ili9882.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/ili9882_mmi/ili9882.c b/drivers/input/touchscreen/ili9882_mmi/ili9882.c index 9900cbb55707..a8470dc319e1 100644 --- a/drivers/input/touchscreen/ili9882_mmi/ili9882.c +++ b/drivers/input/touchscreen/ili9882_mmi/ili9882.c @@ -797,7 +797,7 @@ int ili_report_handler(void) int tmp = debug_en; /* Just in case these stats couldn't be blocked in top half context */ - if (!ilits->report || atomic_read(&ilits->tp_reset) || + if (!ilits->boot || !ilits->report || atomic_read(&ilits->tp_reset) || atomic_read(&ilits->fw_stat) || atomic_read(&ilits->tp_sw_mode) || atomic_read(&ilits->mp_stat) || atomic_read(&ilits->tp_sleep)) { ILI_INFO("ignore report request\n");