wcnss: Invoke panic when WCNSS crashes.
Until WCNSS supports full phase 3 SSR implementation, call panic to
initiate Phase 1 SSR when WCNSS crashes.
Change-Id: Ibbdf694f9ba6f4526ad7ad36b468eb8da2c9c566
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
diff --git a/arch/arm/mach-msm/wcnss-ssr-8960.c b/arch/arm/mach-msm/wcnss-ssr-8960.c
index 954b925..2ef5c61 100644
--- a/arch/arm/mach-msm/wcnss-ssr-8960.c
+++ b/arch/arm/mach-msm/wcnss-ssr-8960.c
@@ -38,8 +38,7 @@
static void riva_smsm_cb_fn(struct work_struct *work)
{
- pr_err("%s: Initiating subsytem restart\n", MODULE_NAME);
- subsystem_restart("riva");
+ panic(MODULE_NAME ": SMSM reset request received from Riva");
}
static void smsm_state_cb_hdlr(void *data, uint32_t old_state,
@@ -59,9 +58,8 @@
static void riva_fatal_fn(struct work_struct *work)
{
- pr_err("%s: Watchdog bite received from Riva\n", MODULE_NAME);
if (!ss_restart_inprogress)
- subsystem_restart("riva");
+ panic(MODULE_NAME ": Watchdog bite received from Riva");
}
/* SMSM reset Riva */