From patchwork Wed Apr 15 16:48:38 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajendra Nayak X-Patchwork-Id: 18393 X-Patchwork-Delegate: khilman@deeprootsystems.com 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 n3FGmonO004321 for ; Wed, 15 Apr 2009 16:48:50 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752208AbZDOQss (ORCPT ); Wed, 15 Apr 2009 12:48:48 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752565AbZDOQss (ORCPT ); Wed, 15 Apr 2009 12:48:48 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:57612 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752208AbZDOQss convert rfc822-to-8bit (ORCPT ); Wed, 15 Apr 2009 12:48:48 -0400 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id n3FGmeeO002783; Wed, 15 Apr 2009 11:48:46 -0500 Received: from dbde70.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id n3FGmcdb001745; Wed, 15 Apr 2009 22:18:39 +0530 (IST) Received: from dbde02.ent.ti.com ([172.24.170.145]) by dbde70.ent.ti.com ([172.24.170.148]) with mapi; Wed, 15 Apr 2009 22:18:39 +0530 From: "Nayak, Rajendra" To: linux-omap CC: Kevin Hilman Date: Wed, 15 Apr 2009 22:18:38 +0530 Subject: [PATCH 05/10] OMAP3: SR: Disable SR autocomp only for CORE trans Thread-Topic: [PATCH 05/10] OMAP3: SR: Disable SR autocomp only for CORE trans Thread-Index: Acm96gYrA6SgsS8TSR6yXE3PFDdoHQ== Message-ID: <5A47E75E594F054BAF48C5E4FC4B92AB02FB2518BE@dbde02.ent.ti.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Re-sending only this patch as the previous one in the patch-set had issues. From: Rajendra Nayak This patch disables the Smartreflex auto compensation for both VDD1 and VDD2 only during CORE transitions in idle path. Signed-off-by: Rajendra Nayak Signed-off-by: Jouni Hogander --- arch/arm/mach-omap2/pm34xx.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: linux-omap-2.6/arch/arm/mach-omap2/pm34xx.c =================================================================== --- linux-omap-2.6.orig/arch/arm/mach-omap2/pm34xx.c 2009-04-15 11:44:51.000000000 +0530 +++ linux-omap-2.6/arch/arm/mach-omap2/pm34xx.c 2009-04-15 11:46:13.000000000 +0530 @@ -349,9 +349,6 @@ void omap_sram_idle(void) printk(KERN_ERR "Invalid mpu state in sram_idle\n"); return; } - /* Disable smartreflex before entering WFI */ - disable_smartreflex(SR1); - disable_smartreflex(SR2); pwrdm_pre_transition(); @@ -380,6 +377,9 @@ void omap_sram_idle(void) /* CORE */ if (core_next_state < PWRDM_POWER_ON) { + /* Disable smartreflex before entering WFI */ + disable_smartreflex(SR1); + disable_smartreflex(SR2); omap_uart_prepare_idle(0); omap_uart_prepare_idle(1); if (core_next_state == PWRDM_POWER_OFF) { @@ -444,6 +444,9 @@ void omap_sram_idle(void) prm_clear_mod_reg_bits(OMAP3430_AUTO_OFF, OMAP3430_GR_MOD, OMAP3_PRM_VOLTCTRL_OFFSET); + /* Enable smartreflex after WFI */ + enable_smartreflex(SR1); + enable_smartreflex(SR2); } /* PER */ @@ -466,9 +469,6 @@ void omap_sram_idle(void) omap3_disable_io_chain(); } - /* Enable smartreflex after WFI */ - enable_smartreflex(SR1); - enable_smartreflex(SR2); pwrdm_post_transition();