Skip to content

Commit 6a24561

Browse files
Miguel VadilloLuis Henriques
authored andcommitted
syslink: procmgr: simulate suspend/resume path
- Call ipu_pm_save_ctx() to truly simulate system suspend, this is just for testing purpose and is intented to validate IPU suspend/resume cb's and proper restore of IPU. Change-Id: I63a957b5b2980e4c4f1f0443fd5ce541b2b3b281 Signed-off-by: Miguel Vadillo <[email protected]>
1 parent 431e4a9 commit 6a24561

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

drivers/dsp/syslink/procmgr/proc4430/proc4430.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -627,11 +627,16 @@ int proc4430_control(void *handle, int cmd, void *arg)
627627
/*FIXME: Remove handle,etc if not used */
628628

629629
#ifdef CONFIG_SYSLINK_DUCATI_PM
630-
/* For purpose testing */
630+
/* Just for testing purpose */
631631
switch (cmd) {
632632
case PM_SUSPEND:
633+
retval = ipu_pm_notifications(APP_M3, cmd, NULL);
634+
retval = ipu_pm_notifications(SYS_M3, cmd, NULL);
635+
ipu_pm_save_ctx(SYS_M3);
636+
break;
633637
case PM_RESUME:
634-
retval = ipu_pm_notifications(cmd, NULL);
638+
retval = ipu_pm_notifications(APP_M3, cmd, NULL);
639+
retval = ipu_pm_notifications(SYS_M3, cmd, NULL);
635640
break;
636641
default:
637642
pr_err("Invalid notification\n");

0 commit comments

Comments
 (0)