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: 2839497 Return-Path: X-Original-To: patchwork-linux-omap@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 6E0A89F479 for ; Tue, 6 Aug 2013 17:50:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 55A5720216 for ; Tue, 6 Aug 2013 17:50:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5955B20212 for ; Tue, 6 Aug 2013 17:50:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756153Ab3HFRub (ORCPT ); Tue, 6 Aug 2013 13:50:31 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:57904 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755861Ab3HFRub (ORCPT ); Tue, 6 Aug 2013 13:50:31 -0400 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: , CC: Paul Walmsley , Kevin Hilman , Vaibhav Bedia , Dave Gerlach 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 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 */