From 237e8a50455ce8bcd43825c6168975a5a2469a23 Mon Sep 17 00:00:00 2001 From: Deepak Kumar Singh Date: Fri, 19 Feb 2021 16:38:56 +0530 Subject: [PATCH] soc: qcom: add dev_pm_ops for tracking no irq phase Glink native interrupt handler need to wakeup local host only in post noirq phase of suspend. Adding dev_pm_ops to track suspend/resume noirq phase. Change-Id: I338f6ca8da8956592d3c95b2676163651ea86361 Signed-off-by: Deepak Kumar Singh --- drivers/soc/qcom/glink_probe.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/soc/qcom/glink_probe.c b/drivers/soc/qcom/glink_probe.c index a7a8da98ec00..ed18cf86c897 100644 --- a/drivers/soc/qcom/glink_probe.c +++ b/drivers/soc/qcom/glink_probe.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. + * Copyright (c) 2017-2019, 2021, The Linux Foundation. All rights reserved. */ #include @@ -25,6 +25,8 @@ do { \ ipc_log_string(glink_ilc, "[%s]: "x, __func__, ##__VA_ARGS__); \ } while (0) +extern const struct dev_pm_ops glink_native_pm_ops; + struct edge_info { struct list_head list; struct device *dev; @@ -202,6 +204,7 @@ static struct platform_driver glink_probe_driver = { .driver = { .name = "msm_glink", .of_match_table = glink_match_table, + .pm = &glink_native_pm_ops, }, };