From patchwork Tue Jun 2 10:02:53 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 6528041 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7D379C0020 for ; Tue, 2 Jun 2015 10:03:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A1AC82052A for ; Tue, 2 Jun 2015 10:03:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B64C820531 for ; Tue, 2 Jun 2015 10:03:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754780AbbFBKDQ (ORCPT ); Tue, 2 Jun 2015 06:03:16 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:55281 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755639AbbFBKDP (ORCPT ); Tue, 2 Jun 2015 06:03:15 -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 t52A3C9L007634; Tue, 2 Jun 2015 05:03:12 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id t52A3C19015017; Tue, 2 Jun 2015 05:03:12 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.224.2; Tue, 2 Jun 2015 05:03:12 -0500 Received: from rockdesk.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id t52A35gA001081; Tue, 2 Jun 2015 05:03:10 -0500 From: Roger Quadros To: , CC: , , , , Roger Quadros Subject: [PATCH 2/2] ARM: DRA7: hwmod: Fix GPMC from preventing core suspend Date: Tue, 2 Jun 2015 13:02:53 +0300 Message-ID: <1433239373-14653-3-git-send-email-rogerq@ti.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1433239373-14653-1-git-send-email-rogerq@ti.com> References: <1433239373-14653-1-git-send-email-rogerq@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, T_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 GPMC hwmod is flagged as HWMOD_INIT_NO_IDLE so it is kept enabled at boot. If the GPMC driver is not loaded then GPMC will not be idled thus preventing CORE from going idle during suspend. Disable HWMOD_INIT_NO_IDLE and HWMOD_INIT_NO_RESET. The only reason HWMOD_INIT_NO_RESET was there was to retain GPMC timings/settings configured by bootloader. We no longer need that as we're configuring the timins in the kernel. There is no reasoning as to why HWMOD_INIT_NO_IDLE was there. Seems to have beein blindly copied from omap3/4 hwmod code. Signed-off-by: Roger Quadros --- arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c index 8c2fad5..52c6565 100644 --- a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c @@ -819,7 +819,6 @@ static struct omap_hwmod dra7xx_gpmc_hwmod = { .name = "gpmc", .class = &dra7xx_gpmc_hwmod_class, .clkdm_name = "l3main1_clkdm", - .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET, .main_clk = "l3_iclk_div", .prcm = { .omap4 = {