From patchwork Fri Sep 24 21:02:03 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ramos Falcon, Ernesto" X-Patchwork-Id: 207562 X-Patchwork-Delegate: omar.ramirez@ti.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o8OKuCIj006646 for ; Fri, 24 Sep 2010 20:56:12 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752242Ab0IXUzq (ORCPT ); Fri, 24 Sep 2010 16:55:46 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:51520 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750816Ab0IXUzp (ORCPT ); Fri, 24 Sep 2010 16:55:45 -0400 Received: from dlep36.itg.ti.com ([157.170.170.91]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id o8OKteRJ008244 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 24 Sep 2010 15:55:40 -0500 Received: from emcc1.sasken-mty.naucm.ext.ti.com (localhost [127.0.0.1]) by dlep36.itg.ti.com (8.13.8/8.13.8) with ESMTP id o8OKtd1a027900; Fri, 24 Sep 2010 15:55:39 -0500 (CDT) Received: from localhost.localdomain (x0076199-desktop.sasken-mty.naucm.ext.ti.com [10.87.230.107]) by emcc1.sasken-mty.naucm.ext.ti.com (8.13.8+Sun/8.13.8) with ESMTP id o8OKtbZP006384; Fri, 24 Sep 2010 15:55:38 -0500 (CDT) From: Ernesto Ramos To: gregkh@suse.com, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Cc: ameya.palande@nokia.com, felipe.contreras@gmail.com, andy.shevchenko@gmail.com, Ernesto Ramos , Omar Ramirez Luna Subject: [PATCH] staging: tidspbridge: disable all peripherals at bridge_brd_stop Date: Fri, 24 Sep 2010 16:02:03 -0500 Message-Id: <1285362123-31323-1-git-send-email-ernesto@ti.com> X-Mailer: git-send-email 1.5.4.5 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Fri, 24 Sep 2010 20:56:12 +0000 (UTC) diff --git a/drivers/staging/tidspbridge/core/tiomap3430.c b/drivers/staging/tidspbridge/core/tiomap3430.c index 0e3558a..8b73ac9 100644 --- a/drivers/staging/tidspbridge/core/tiomap3430.c +++ b/drivers/staging/tidspbridge/core/tiomap3430.c @@ -552,7 +552,7 @@ static int bridge_brd_stop(struct bridge_dev_context *dev_ctxt) int status = 0; struct bridge_dev_context *dev_context = dev_ctxt; u32 dsp_pwr_state; - int clk_status, i; + int i; struct bridge_ioctl_extproc *tlb = dev_context->atlb_entry; struct dspbridge_platform_data *pdata = omap_dspbridge_dev->dev.platform_data; @@ -621,7 +621,8 @@ static int bridge_brd_stop(struct bridge_dev_context *dev_ctxt) (*pdata->dsp_prm_rmw_bits)(OMAP3430_RST2_IVA2_MASK, OMAP3430_RST2_IVA2_MASK, OMAP3430_IVA2_MOD, OMAP2_RM_RSTCTRL); - clk_status = dsp_clk_disable(DSP_CLK_IVA2); + dsp_clock_disable_all(dev_context->dsp_per_clks); + dsp_clk_disable(DSP_CLK_IVA2); return status; }