diff options
author | Super Liu <supercjliu@google.com> | 2019-04-11 11:32:55 +0800 |
---|---|---|
committer | Super Liu <supercjliu@google.com> | 2019-04-11 11:47:42 +0800 |
commit | 4f4c4d3e8be9c824926d1b3a9dae87f4bb40e562 (patch) | |
tree | 10396c29e5339517ee3758925e418da0c9a1db1e | |
parent | cc5563a427d11cfcd3ad62a8cf3de0d79b32f506 (diff) | |
download | fts_touch-4f4c4d3e8be9c824926d1b3a9dae87f4bb40e562.tar.gz |
input: touchscreen: stm: stay awake during force touch active
This is only used for dogfood debugging and factory validation.
Bug: 130283593
Change-Id: I3da83f80216ebca47195fc12f157b587e700d673
Signed-off-by: Super Liu <supercjliu@google.com>
-rw-r--r-- | fts_proc.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -2893,14 +2893,16 @@ END_DIAGNOSTIC: pr_err("Parameter should be 1 or 0\n"); res = ERROR_OP_NOT_ALLOW; } else { + pr_info("FTS_BUS_REF_FORCE_ACTIVE: %s\n", + cmd[1] ? "ON" : "OFF"); fts_set_bus_ref(info, FTS_BUS_REF_FORCE_ACTIVE, cmd[1]); res = OK; if (cmd[1]) - __pm_wakeup_event( - &info->wakesrc, - 3 * MSEC_PER_SEC); + __pm_stay_awake(&info->wakesrc); + else + __pm_relax(&info->wakesrc); } } else { pr_err("Wrong number of parameters!\n"); |