From 238f87868dc7f8bde4f8c2d6be464877fe2e9a83 Mon Sep 17 00:00:00 2001 From: Puja Gupta Date: Thu, 15 Sep 2016 12:01:29 -0700 Subject: [PATCH] soc: qcom: Listen to SUBSYS_AFTER_SHUTDOWN notification When the subsytem goes down through SSR path, listen for SUBSYS_AFTER_SHUTDOWN and then send out ROOT_PD down notification to service notifier clients. ROOT_PD down is supposed to indicate that service is already down. Change-Id: I916e37bd79a6645bdc186a78a65051ce1c4dd475 Signed-off-by: Puja Gupta --- drivers/soc/qcom/service-notifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/qcom/service-notifier.c b/drivers/soc/qcom/service-notifier.c index 981f78491ecf..28b47ca6112a 100644 --- a/drivers/soc/qcom/service-notifier.c +++ b/drivers/soc/qcom/service-notifier.c @@ -459,7 +459,7 @@ static int ssr_event_notify(struct notifier_block *this, struct qmi_client_info, ssr_notifier); struct notif_data *notif = data; switch (code) { - case SUBSYS_BEFORE_SHUTDOWN: + case SUBSYS_AFTER_SHUTDOWN: pr_debug("Root PD DOWN(SSR notification), crashed?%d\n", notif->crashed); if (notif->crashed)