msm: subsystem_restart: Wait for error ready only for loadable subsystems.
If a subsystem is not loadable, do not wait for the error ready
interrupt since PIL does not boot the subsystem. Just return success.
Change-Id: I5e57314307da62bcb3384bf12933f1437aec90db
Signed-off-by: Seemanta Dutta <seemanta@codeaurora.org>
diff --git a/arch/arm/mach-msm/subsystem_restart.c b/arch/arm/mach-msm/subsystem_restart.c
index fb44e16..9479d46c 100644
--- a/arch/arm/mach-msm/subsystem_restart.c
+++ b/arch/arm/mach-msm/subsystem_restart.c
@@ -495,6 +495,9 @@
if (ret)
return ret;
+ if (!subsys->desc->is_loadable)
+ return 0;
+
ret = wait_for_err_ready(subsys);
if (ret)
/* pil-boot succeeded but we need to shutdown