mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
driver: fogor: tp gki issue adapt
tp gki function:
gki issue adapt
Change-Id: I0c096bb86a54bf26f108d4bf1eee025b16f9a68b
Signed-off-by: chenshitao <ontim51@motorola.com>
Reviewed-on: https://gerrit.mot.com/2659836
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
parent
0118a04fa7
commit
ae81f70eca
4 changed files with 28 additions and 4 deletions
|
|
@ -25,6 +25,10 @@ ifneq ($(filter m y,$(CONFIG_INPUT_TOUCHSCREEN_MMI)),)
|
|||
EXTRA_CFLAGS += -DCONFIG_INPUT_TOUCHSCREEN_MMI
|
||||
endif
|
||||
|
||||
ifeq ($(TARGET_BUILD_VARIANT),user)
|
||||
EXTRA_CFLAGS += -DCFG_CTS_FOR_GKI
|
||||
endif
|
||||
|
||||
#obj-$(CONFIG_TOUCHSCREEN_CHIPONE) += chipone-tddi.o
|
||||
obj-m += chipone_tddi_v2_mmi.o
|
||||
|
||||
|
|
|
|||
|
|
@ -51,6 +51,9 @@ ifneq ($(filter m y,$(CONFIG_INPUT_TOUCHSCREEN_MMI)),)
|
|||
EXTRA_CFLAGS += -DCONFIG_INPUT_TOUCHSCREEN_MMI
|
||||
endif
|
||||
|
||||
ifeq ($(TARGET_BUILD_VARIANT),user)
|
||||
EXTRA_CFLAGS += -DGKI_EN_FLAG
|
||||
endif
|
||||
ilitek_v3_mmi-objs += ilitek_v3.o
|
||||
ilitek_v3_mmi-objs += ilitek_v3_spi.o
|
||||
ilitek_v3_mmi-objs += ilitek_v3_qcom.o
|
||||
|
|
|
|||
|
|
@ -173,7 +173,7 @@
|
|||
#define MULTI_REPORT_RATE DISABLE
|
||||
#define ENGINEER_FLOW ENABLE
|
||||
#define DMESG_SEQ_FILE ENABLE
|
||||
#if KERNEL_VERSION(5, 10, 0) <= LINUX_VERSION_CODE
|
||||
#ifdef GKI_EN_FLAG
|
||||
#define GENERIC_KERNEL_IMAGE ENABLE/*follow gki */
|
||||
#else
|
||||
#define GENERIC_KERNEL_IMAGE DISABLE/*follow gki */
|
||||
|
|
|
|||
|
|
@ -1168,6 +1168,11 @@ static int ilitek_proc_debug_all_message_show(struct seq_file *m, void *v)
|
|||
int need_read_data_len = 0;
|
||||
int type = 0;
|
||||
|
||||
if (m->size < 500 * K) {
|
||||
m->count = m->size;
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!ilits->dlnp) {
|
||||
ILI_ERR("Debug flag isn't enabled (%d)\n", ilits->dlnp);
|
||||
seq_printf(m, "Debug flag isn't enabled (%d)\n", ilits->dlnp);
|
||||
|
|
@ -1239,6 +1244,11 @@ static int ilitek_proc_debug_message_show(struct seq_file *m, void *v)
|
|||
/* '0' ~ 'F' mapping table */
|
||||
char charmapping[16] = {0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46 };
|
||||
|
||||
if (m->size < 16 * K) {
|
||||
m->count = m->size;
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!ilits->dnp) {
|
||||
ILI_ERR("Debug flag isn't enabled (%d)\n", ilits->dnp);
|
||||
seq_printf(m, "Debug flag isn't enabled (%d)\n", ilits->dnp);
|
||||
|
|
@ -1557,9 +1567,16 @@ static int ilitek_proc_mp_result_show(struct seq_file *m, void *v)
|
|||
return 0;
|
||||
}
|
||||
|
||||
if (m->size < 500 * K) {
|
||||
m->count = m->size;
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (m->size < strlen(ilits->mp_result)) {
|
||||
ILI_INFO("size = %d, mp_result = %d\n Unable to print all data\n",
|
||||
(int) m->size, (int) strlen(ilits->mp_result));
|
||||
m->count = m->size;
|
||||
return 0;
|
||||
}
|
||||
|
||||
seq_printf(m, "%s", ilits->mp_result);
|
||||
|
|
@ -3576,7 +3593,7 @@ static int proc_show_mp_test_result_read(struct inode *inode, struct file *file)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
return single_open_size(file, ilitek_proc_mp_result_show, NULL, 512 * K);
|
||||
return single_open(file, ilitek_proc_mp_result_show, NULL);
|
||||
}
|
||||
|
||||
#if LINUX_VERSION_CODE > KERNEL_VERSION(5, 6, 0)
|
||||
|
|
@ -3652,7 +3669,7 @@ static int ilitek_proc_seq_debug_message_read(struct inode *inode, struct file *
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
return single_open_size(file, ilitek_proc_debug_message_show, NULL, 16 * K);
|
||||
return single_open(file, ilitek_proc_debug_message_show, NULL);
|
||||
}
|
||||
|
||||
#if LINUX_VERSION_CODE > KERNEL_VERSION(5, 6, 0)
|
||||
|
|
@ -3692,7 +3709,7 @@ static int ilitek_proc_seq_debug_all_message_read(struct inode *inode, struct fi
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
return single_open_size(file, ilitek_proc_debug_all_message_show, NULL, 500 * K);
|
||||
return single_open(file, ilitek_proc_debug_all_message_show, NULL);
|
||||
}
|
||||
|
||||
#if LINUX_VERSION_CODE > KERNEL_VERSION(5, 6, 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue