Skip to content

Commit 6fc7f79

Browse files
committed
HACK TO DROP TO SUSPEND MODE AFTER FW UPDATE
1 parent 1d101e3 commit 6fc7f79

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

drivers/input/touchscreen/ilitek-v3/ilitek_v3.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -786,6 +786,15 @@ int ili_fw_upgrade_handler(void *data)
786786
}
787787

788788
atomic_set(&ilits->fw_stat, END);
789+
790+
pr_err("Trying suspend....\n");
791+
ret = ili_sleep_handler(TP_SUSPEND);
792+
pr_err("Suspend returned %d. Pause....\n", ret);
793+
msleep(5000);
794+
pr_err("Trying resume....\n");
795+
ret = ili_sleep_handler(TP_RESUME);
796+
pr_err("Resume returned %d. Pause....\n", ret);
797+
789798
return ret;
790799
}
791800

drivers/input/touchscreen/ilitek-v3/ilitek_v3.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
#define GENERIC_KERNEL_IMAGE ENABLE //DISABLE/*follow gki */
142142
#define SUSPEND_RESUME_SUPPORT ENABLE
143143
#define ENABLE_GET_ALL_INFO ENABLE /*GET_ALL_INFO options*/
144-
#define ENABLE_PEN_MODE ENABLE /*Pen mode options*/
144+
#define ENABLE_PEN_MODE DISABLE //ENABLE /*Pen mode options*/
145145
#define ENABLE_CASCADE ENABLE
146146
#define ENABLE_COMPRESS_MODE DISABLE /*Compress mode options*/
147147

0 commit comments

Comments
 (0)