From patchwork Tue Nov 3 23:20:26 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ramos Falcon, Ernesto" X-Patchwork-Id: 57403 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nA3NKUjH025199 for ; Tue, 3 Nov 2009 23:20:30 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751834AbZKCXUY (ORCPT ); Tue, 3 Nov 2009 18:20:24 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751833AbZKCXUX (ORCPT ); Tue, 3 Nov 2009 18:20:23 -0500 Received: from comal.ext.ti.com ([198.47.26.152]:56582 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751800AbZKCXUX convert rfc822-to-8bit (ORCPT ); Tue, 3 Nov 2009 18:20:23 -0500 Received: from dlep34.itg.ti.com ([157.170.170.115]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id nA3NKSir020910 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 3 Nov 2009 17:20:28 -0600 Received: from dlep26.itg.ti.com (localhost [127.0.0.1]) by dlep34.itg.ti.com (8.13.7/8.13.7) with ESMTP id nA3NKRnp014321 for ; Tue, 3 Nov 2009 17:20:28 -0600 (CST) Received: from dlee74.ent.ti.com (localhost [127.0.0.1]) by dlep26.itg.ti.com (8.13.8/8.13.8) with ESMTP id nA3NKRtS015499 for ; Tue, 3 Nov 2009 17:20:27 -0600 (CST) Received: from dlee01.ent.ti.com ([157.170.170.12]) by dlee74.ent.ti.com ([157.170.170.8]) with mapi; Tue, 3 Nov 2009 17:20:27 -0600 From: "Ramos Falcon, Ernesto" To: "linux-omap@vger.kernel.org" Date: Tue, 3 Nov 2009 17:20:26 -0600 Subject: [PATCH 3/6] DSPBRIDGE: Report and print errors during OFF Thread-Topic: [PATCH 3/6] DSPBRIDGE: Report and print errors during OFF Thread-Index: Acpc3Dmu8WyICjGRTTmUgoX7qVHvHg== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org diff --git a/drivers/dsp/bridge/wmd/tiomap3430_pwr.c b/drivers/dsp/bridge/wmd/tiomap3430_pwr.c index 2eb379f..da7d4f3 100644 --- a/drivers/dsp/bridge/wmd/tiomap3430_pwr.c +++ b/drivers/dsp/bridge/wmd/tiomap3430_pwr.c @@ -114,6 +114,9 @@ DSP_STATUS handle_hibernation_fromDSP(struct WMD_DEV_CONTEXT *pDevContext) #ifdef CONFIG_PM u16 timeout = PWRSTST_TIMEOUT / 10; enum HW_PwrState_t pwrState; +#ifdef BRIDGE_NTFY_PWRERR + struct DEH_MGR *hDehMgr; +#endif /* #ifdef BRIDGE_NTFY_PWRERR */ #ifdef CONFIG_BRIDGE_DVFS u32 opplevel; struct IO_MGR *hIOMgr; @@ -133,9 +136,12 @@ DSP_STATUS handle_hibernation_fromDSP(struct WMD_DEV_CONTEXT *pDevContext) &pwrState); } if (timeout == 0) { - DBG_Trace(DBG_LEVEL7, "Timed out Waiting for DSP Off mode \n"); + pr_err("Timed out waiting for DSP self hibernation\n"); +#ifdef BRIDGE_NTFY_PWRERR + DEV_GetDehMgr(pDevContext->hDevObject, &hDehMgr); + WMD_DEH_Notify(hDehMgr, DSP_PWRERROR, 0); +#endif /* #ifdef BRIDGE_NTFY_PWRERR */ status = WMD_E_TIMEOUT; - return status; } else { /* Save mailbox settings */ status = HW_MBOX_saveSettings(pDevContext->dwMailBoxBase); @@ -258,8 +264,7 @@ DSP_STATUS SleepDSP(struct WMD_DEV_CONTEXT *pDevContext, IN u32 dwCmd, } if (!timeout) { - DBG_Trace(DBG_LEVEL7, "SleepDSP: Timed out Waiting for DSP" - " STANDBY %x \n", pwrState); + pr_err("Timed out waiting for DSP suspend %x\n", pwrState); #ifdef CONFIG_BRIDGE_NTFY_PWRERR DEV_GetDehMgr(pDevContext->hDevObject, &hDehMgr); WMD_DEH_Notify(hDehMgr, DSP_PWRERROR, 0);