diff mbox

[10/13] DSPBRIDGE: HACK: insert delay for DPLL stabilization

Message ID 1247669795-23895-11-git-send-email-ameya.palande@nokia.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Ameya Palande July 15, 2009, 2:56 p.m. UTC
*HACK*: status register should be checked for this purpose.

[Hiroshi DOYU: split the original to logical ones]

Signed-off-by: Ameya Palande <ameya.palande@nokia.com>
Acked-by: Omar Ramirez Luna <omar.ramirez@ti.com>
---
 drivers/dsp/bridge/wmd/tiomap_sm.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/drivers/dsp/bridge/wmd/tiomap_sm.c b/drivers/dsp/bridge/wmd/tiomap_sm.c
index 7d389e3..02e2675 100644
--- a/drivers/dsp/bridge/wmd/tiomap_sm.c
+++ b/drivers/dsp/bridge/wmd/tiomap_sm.c
@@ -141,6 +141,13 @@  DSP_STATUS CHNLSM_InterruptDSP2(struct WMD_DEV_CONTEXT *pDevContext,
 		temp = (temp & 0xFFFFFF08) | 0x37;
 		*(REG_UWORD32 *)(resources.dwCmBase + 0x4) = temp;
 
+		/*
+		 * This delay is needed to avoid mailbox timed out
+		 * issue experienced while SmartReflex is ON.
+		 * TODO: Instead of 1 ms calculate proper value.
+		 */
+		mdelay(1);
+
 		/* Restore mailbox settings */
 		HW_MBOX_restoreSettings(resources.dwMboxBase);