From patchwork Tue Aug 6 17:49:34 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dave Gerlach X-Patchwork-Id: 2839506 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 794C59F479 for ; Tue, 6 Aug 2013 17:51:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 522BF20216 for ; Tue, 6 Aug 2013 17:51:21 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 48A2020212 for ; Tue, 6 Aug 2013 17:51:20 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V6lPM-00077W-Jt; Tue, 06 Aug 2013 17:50:56 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1V6lPA-0004x6-BP; Tue, 06 Aug 2013 17:50:44 +0000 Received: from devils.ext.ti.com ([198.47.26.153]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V6lOs-0004t2-7V for linux-arm-kernel@lists.infradead.org; Tue, 06 Aug 2013 17:50:30 +0000 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id r76Ho8Bv022104; Tue, 6 Aug 2013 12:50:08 -0500 Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id r76Ho8bN028923; Tue, 6 Aug 2013 12:50:08 -0500 Received: from dlelxv23.itg.ti.com (172.17.1.198) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.2.342.3; Tue, 6 Aug 2013 12:50:08 -0500 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dlelxv23.itg.ti.com (8.13.8/8.13.8) with ESMTP id r76Ho8dn020795; Tue, 6 Aug 2013 12:50:08 -0500 Received: from localhost (lta0274052.am.dhcp.ti.com [128.247.106.219]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id r76Ho8t02116; Tue, 6 Aug 2013 12:50:08 -0500 (CDT) From: Dave Gerlach To: , Subject: [PATCHv3 7/9] ARM: OMAP: omap_device: Add APIs to enable and idle hwmods Date: Tue, 6 Aug 2013 12:49:34 -0500 Message-ID: <1375811376-49985-8-git-send-email-d-gerlach@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1375811376-49985-1-git-send-email-d-gerlach@ti.com> References: <1375811376-49985-1-git-send-email-d-gerlach@ti.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130806_135026_540433_92B8B1BA X-CRM114-Status: UNSURE ( 9.40 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -6.9 (------) Cc: Paul Walmsley , Kevin Hilman , Vaibhav Bedia , Dave Gerlach X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Vaibhav Bedia Needed to let the AM335x PM handle the IPs which need forced standby transition during every suspend-resume cycle when the corresponding driver is not compiled into the kernel. Signed-off-by: Vaibhav Bedia Signed-off-by: Dave Gerlach Reviewed-by: Russ Dill --- arch/arm/mach-omap2/omap_device.c | 8 ++++++++ arch/arm/mach-omap2/omap_device.h | 2 ++ 2 files changed, 10 insertions(+) diff --git a/arch/arm/mach-omap2/omap_device.c b/arch/arm/mach-omap2/omap_device.c index 5cc9287..8cf63f6 100644 --- a/arch/arm/mach-omap2/omap_device.c +++ b/arch/arm/mach-omap2/omap_device.c @@ -219,6 +219,10 @@ static int _omap_device_enable_hwmods(struct omap_device *od) return 0; } +int omap_device_enable_hwmods(struct omap_device *od) +{ + return _omap_device_enable_hwmods(od); +} /** * _omap_device_idle_hwmods - call omap_hwmod_idle() on all hwmods * @od: struct omap_device *od @@ -236,6 +240,10 @@ static int _omap_device_idle_hwmods(struct omap_device *od) return 0; } +int omap_device_idle_hwmods(struct omap_device *od) +{ + return _omap_device_idle_hwmods(od); +} /* Public functions for use by core code */ /** diff --git a/arch/arm/mach-omap2/omap_device.h b/arch/arm/mach-omap2/omap_device.h index 17ca1ae..655ec35 100644 --- a/arch/arm/mach-omap2/omap_device.h +++ b/arch/arm/mach-omap2/omap_device.h @@ -87,6 +87,8 @@ struct device *omap_device_get_by_hwmod_name(const char *oh_name); /* OMAP PM interface */ int omap_device_get_context_loss_count(struct platform_device *pdev); +int omap_device_enable_hwmods(struct omap_device *od); +int omap_device_idle_hwmods(struct omap_device *od); /* Other */