summaryrefslogtreecommitdiff
path: root/goodix_ts_proc.c
diff options
context:
space:
mode:
authorWendly Li <wendlyli@google.com>2022-09-08 08:21:21 +0000
committerWendly Li <wendlyli@google.com>2022-09-08 08:41:15 +0000
commit55885688ac01231e64da7534826ca86689090551 (patch)
treee3e19ba7eef497d24223f9ea613eaf08fdb72ca2 /goodix_ts_proc.c
parentad4da241e57a6b1ab4e5f0d6764d3f1c89e199d6 (diff)
downloadgoodix_touch-55885688ac01231e64da7534826ca86689090551.tar.gz
touch/goodix: Workaround auto test failures
Bug: 245485508 Test: Build pass Change-Id: I7fb001e4dbb3362f8cf08e5ddd6ddacddb41ed42 Signed-off-by: Wendly Li <wendlyli@google.com>
Diffstat (limited to 'goodix_ts_proc.c')
-rw-r--r--goodix_ts_proc.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/goodix_ts_proc.c b/goodix_ts_proc.c
index 893aeb2..ab7bfd2 100644
--- a/goodix_ts_proc.c
+++ b/goodix_ts_proc.c
@@ -3178,7 +3178,10 @@ static ssize_t driver_test_write(
}
if (!strncmp(p, CMD_AUTO_TEST, strlen(CMD_AUTO_TEST))) {
- raw_data_cnt = 16;
+ /*
+ * b/245485508: WA for self-test.
+ */
+ raw_data_cnt = 1;
noise_data_cnt = 1;
rbuf = kzalloc(SHORT_SIZE, GFP_KERNEL);
ret = malloc_test_resource();
@@ -3684,7 +3687,10 @@ int driver_test_selftest(char* buf)
rbuf = NULL;
}
- raw_data_cnt = 16;
+ /*
+ * b/245485508: WA for self-test.
+ */
+ raw_data_cnt = 1;
noise_data_cnt = 1;
rbuf = kzalloc(SHORT_SIZE, GFP_KERNEL);
ret = malloc_test_resource();