Browse Source

ipc : gpr-lite: set dsp state to GPR_SUBSYS_LOADED

Dsp can get online before gpr ssr callback registering.
Dsp state is never changed in this case.
Set dsp state by default GPR_SUBSYS_LOADED at the tail of gpr probe.

Change-Id: I3cc4087e0433f6d827042244f91f3110d234669d
Signed-off-by: Jiazai Wu <[email protected]>
Jiazai Wu 1 year ago
parent
commit
9ce7dace9f
1 changed files with 4 additions and 0 deletions
  1. 4 0
      ipc/gpr-lite.c

+ 4 - 0
ipc/gpr-lite.c

@@ -555,6 +555,10 @@ static int gpr_probe(struct rpmsg_device *rpdev)
 	dev_info(dev, "%s: gpr-lite probe success\n",
 		__func__);
 
+#ifndef CONFIG_MSM_QDSP6_PDR
+	gpr_set_q6_state(GPR_SUBSYS_LOADED);
+#endif
+
 	return 0;
 }