[PATCH 2/5] BRIDGE Save mailbox settings for suspend-resume

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Ramesh Gupta <grgupta@xxxxxx>
Date: Fri, 31 Oct 2008 20:04:41 -0500
Subject: [PATCH] BRIDGE Save mailbox settings for suspend-resume

Save the mailbox settings whenever a call for suspend is
issued, previously if within 30 seconds (time for the dsp
to go hibernate) a suspend call was made, mailbox settings
were lost, this produced some problems in bridge behavior.

Signed-off-by: Ramesh Gupta <grgupta@xxxxxx>
Signed-off-by: Fernando Guzman <x0095840@xxxxxx>
Signed-off-by: Omar Ramirez Luna <x00omar@xxxxxx>
---
 drivers/dsp/bridge/wmd/tiomap3430_pwr.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/dsp/bridge/wmd/tiomap3430_pwr.c b/drivers/dsp/bridge/wmd/tiomap3430_pwr.c
index 992d6db..623cc9b 100644
--- a/drivers/dsp/bridge/wmd/tiomap3430_pwr.c
+++ b/drivers/dsp/bridge/wmd/tiomap3430_pwr.c
@@ -237,6 +237,7 @@ DSP_STATUS SleepDSP(struct WMD_DEV_CONTEXT *pDevContext, IN u32 dwCmd,
 	}
 	switch (pDevContext->dwBrdState) {
 	case BRD_RUNNING:
+		status = HW_MBOX_saveSettings(resources.dwMboxBase);
 		if (dsp_test_sleepstate == HW_PWR_STATE_OFF) {
 			IO_InterruptDSP2(pDevContext,
 					 MBX_PM_DSPHIBERNATE);
@@ -251,6 +252,7 @@ DSP_STATUS SleepDSP(struct WMD_DEV_CONTEXT *pDevContext, IN u32 dwCmd,
 		}
 		break;
 	case BRD_RETENTION:
+		status = HW_MBOX_saveSettings(resources.dwMboxBase);
 		if (dsp_test_sleepstate == HW_PWR_STATE_OFF) {
 			IO_InterruptDSP2(pDevContext,
 					 MBX_PM_DSPHIBERNATE);
-- 
1.6.0
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux