From patchwork Fri Jul 24 07:01:21 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ameya Palande X-Patchwork-Id: 37086 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 n6O70txX023429 for ; Fri, 24 Jul 2009 07:01:48 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751821AbZGXHBq (ORCPT ); Fri, 24 Jul 2009 03:01:46 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751894AbZGXHBq (ORCPT ); Fri, 24 Jul 2009 03:01:46 -0400 Received: from smtp.nokia.com ([192.100.122.233]:51720 "EHLO mgw-mx06.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751821AbZGXHBp (ORCPT ); Fri, 24 Jul 2009 03:01:45 -0400 Received: from vaebh105.NOE.Nokia.com (vaebh105.europe.nokia.com [10.160.244.31]) by mgw-mx06.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id n6O71SAt007564; Fri, 24 Jul 2009 10:01:30 +0300 Received: from esebh102.NOE.Nokia.com ([172.21.138.183]) by vaebh105.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 24 Jul 2009 10:01:27 +0300 Received: from mgw-da02.ext.nokia.com ([147.243.128.26]) by esebh102.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Fri, 24 Jul 2009 10:01:25 +0300 Received: from localhost.localdomain (esdhcp04032.research.nokia.com [172.21.40.32]) by mgw-da02.ext.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id n6O71Glu015240; Fri, 24 Jul 2009 10:01:19 +0300 From: Ameya Palande To: linux-omap@vger.kernel.org Cc: hiroshi.doyu@nokia.com, omar.ramirez@ti.com, x0095840@ti.com Subject: [PATCH 2/2] DSPBRIDGE: Set VDD1 OPP1 while MPU initiated OFF mode Date: Fri, 24 Jul 2009 10:01:21 +0300 Message-Id: <1248418882-28164-2-git-send-email-ameya.palande@nokia.com> X-Mailer: git-send-email 1.6.2.4 In-Reply-To: <1248418882-28164-1-git-send-email-ameya.palande@nokia.com> References: <1248272767-29223-1-git-send-email-ameya.palande@nokia.com> <1248418882-28164-1-git-send-email-ameya.palande@nokia.com> X-OriginalArrivalTime: 24 Jul 2009 07:01:26.0242 (UTC) FILETIME=[8FB29420:01CA0C2C] X-Nokia-AV: Clean Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Signed-off-by: Ameya Palande Acked-by: Omar Ramirez Luna --- drivers/dsp/bridge/wmd/tiomap3430_pwr.c | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/drivers/dsp/bridge/wmd/tiomap3430_pwr.c b/drivers/dsp/bridge/wmd/tiomap3430_pwr.c index 7aa58d1..dfac5b6 100644 --- a/drivers/dsp/bridge/wmd/tiomap3430_pwr.c +++ b/drivers/dsp/bridge/wmd/tiomap3430_pwr.c @@ -292,8 +292,21 @@ DSP_STATUS SleepDSP(struct WMD_DEV_CONTEXT *pDevContext, IN u32 dwCmd, /* Turn off DSP Peripheral clocks */ status = DSP_PeripheralClocks_Disable(pDevContext, NULL); - if (DSP_FAILED(status)) + if (DSP_FAILED(status)) { DBG_Trace(DBG_LEVEL7, "SleepDSP- FAILED\n"); + return status; + } +#ifdef CONFIG_BRIDGE_DVFS + else if (targetPwrState == HW_PWR_STATE_OFF) { + struct dspbridge_platform_data *pdata = + omap_dspbridge_dev->dev.platform_data; + /* + * Set the OPP to low level before moving to OFF mode + */ + if (pdata->dsp_set_min_opp) + (*pdata->dsp_set_min_opp)(VDD1_OPP1); + } +#endif /* CONFIG_BRIDGE_DVFS */ } #endif /* CONFIG_PM */ return status;