aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiguel Vadillo <vadillo@ti.com>2010-11-29 19:31:22 -0500
committerPaolo Pisati <paolo.pisati@canonical.com>2012-08-17 04:19:08 -0400
commit89cbd196d125dda1e6f3f04867ef16b0f88dabd9 (patch)
treea835e78acc9adc3aa3bc73c2528ea4309377061a
parentfe8a6994da3f443b8c7e19fc4d2ad327a36b6438 (diff)
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 <vadillo@ti.com>
-rw-r--r--drivers/dsp/syslink/procmgr/proc4430/proc4430.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/dsp/syslink/procmgr/proc4430/proc4430.c b/drivers/dsp/syslink/procmgr/proc4430/proc4430.c
index 9f0bdfe2183..7530ba8df5b 100644
--- a/drivers/dsp/syslink/procmgr/proc4430/proc4430.c
+++ b/drivers/dsp/syslink/procmgr/proc4430/proc4430.c
@@ -627,11 +627,16 @@ int proc4430_control(void *handle, int cmd, void *arg)
627 /*FIXME: Remove handle,etc if not used */ 627 /*FIXME: Remove handle,etc if not used */
628 628
629#ifdef CONFIG_SYSLINK_DUCATI_PM 629#ifdef CONFIG_SYSLINK_DUCATI_PM
630 /* For purpose testing */ 630 /* Just for testing purpose */
631 switch (cmd) { 631 switch (cmd) {
632 case PM_SUSPEND: 632 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;
633 case PM_RESUME: 637 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);
635 break; 640 break;
636 default: 641 default:
637 pr_err("Invalid notification\n"); 642 pr_err("Invalid notification\n");