summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuper Liu <supercjliu@google.com>2022-09-15 05:41:21 +0000
committerSuper Liu <supercjliu@google.com>2022-09-15 05:45:34 +0000
commit47770818b88de6c526a259e00d7a3bafb26f18f9 (patch)
tree4828f2406a45fa3c3240133ba532cbd1116d8f1a
parentdfb1c6a783f415fc2bc6efe5e39bdb7b6921fcc2 (diff)
downloadgoodix_touch-47770818b88de6c526a259e00d7a3bafb26f18f9.tar.gz
touch/goodix: Migrate pm qos into GTI.
Bug: 201610482 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: Icedc06418c52c994b263bb51d06504637c257453
-rw-r--r--goodix_ts_core.c7
-rw-r--r--goodix_ts_core.h2
2 files changed, 0 insertions, 9 deletions
diff --git a/goodix_ts_core.c b/goodix_ts_core.c
index f4a1931..946d2e2 100644
--- a/goodix_ts_core.c
+++ b/goodix_ts_core.c
@@ -1732,8 +1732,6 @@ static irqreturn_t goodix_ts_threadirq_func(int irq, void *data)
struct goodix_ts_esd *ts_esd = &core_data->ts_esd;
int ret;
- cpu_latency_qos_update_request(&core_data->pm_qos_req, 100 /* usec */);
-
#if IS_ENABLED(CONFIG_GTI_PM)
goog_pm_wake_lock(core_data->gti, GTI_PM_WAKELOCK_TYPE_IRQ, true);
#endif
@@ -1792,7 +1790,6 @@ static irqreturn_t goodix_ts_threadirq_func(int irq, void *data)
goog_pm_wake_unlock(core_data->gti, GTI_PM_WAKELOCK_TYPE_IRQ);
#endif
- cpu_latency_qos_update_request(&core_data->pm_qos_req, PM_QOS_DEFAULT_VALUE);
return IRQ_HANDLED;
}
@@ -2657,8 +2654,6 @@ int goodix_ts_stage2_init(struct goodix_ts_core *cd)
}
}
- cpu_latency_qos_add_request(&cd->pm_qos_req, PM_QOS_DEFAULT_VALUE);
-
#if IS_ENABLED(CONFIG_FB)
cd->fb_notifier.notifier_call = goodix_ts_fb_notifier_callback;
if (fb_register_client(&cd->fb_notifier))
@@ -2843,7 +2838,6 @@ err_init_sysfs:
#if IS_ENABLED(CONFIG_FB)
fb_unregister_client(&cd->fb_notifier);
#endif
- cpu_latency_qos_remove_request(&cd->pm_qos_req);
goodix_ts_pen_dev_remove(cd);
err_finger:
goodix_ts_input_dev_remove(cd);
@@ -3134,7 +3128,6 @@ static int goodix_ts_remove(struct platform_device *pdev)
#if IS_ENABLED(CONFIG_FB)
fb_unregister_client(&core_data->fb_notifier);
#endif
- cpu_latency_qos_remove_request(&core_data->pm_qos_req);
core_module_prob_sate = CORE_MODULE_REMOVED;
goodix_ts_esd_uninit(core_data);
diff --git a/goodix_ts_core.h b/goodix_ts_core.h
index 2ed9f37..4a4173a 100644
--- a/goodix_ts_core.h
+++ b/goodix_ts_core.h
@@ -31,7 +31,6 @@
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>
-#include <linux/pm_qos.h>
#if IS_ENABLED(CONFIG_OF)
#include <linux/of_gpio.h>
#include <linux/regulator/consumer.h>
@@ -668,7 +667,6 @@ struct goodix_ic_config {
struct goodix_ts_core {
int init_stage;
struct platform_device *pdev;
- struct pm_qos_request pm_qos_req;
struct goodix_fw_version fw_version;
struct goodix_ic_info ic_info;
struct goodix_bus_interface *bus;