From patchwork Thu Jun 25 16:41:57 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 32417 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 n5PGgwhQ007266 for ; Thu, 25 Jun 2009 16:42:58 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754145AbZFYQmx (ORCPT ); Thu, 25 Jun 2009 12:42:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754664AbZFYQmx (ORCPT ); Thu, 25 Jun 2009 12:42:53 -0400 Received: from mail-px0-f190.google.com ([209.85.216.190]:49012 "EHLO mail-px0-f190.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754145AbZFYQmw (ORCPT ); Thu, 25 Jun 2009 12:42:52 -0400 Received: by mail-px0-f190.google.com with SMTP id 28so1148479pxi.33 for ; Thu, 25 Jun 2009 09:42:56 -0700 (PDT) Received: by 10.142.186.15 with SMTP id j15mr1081732wff.238.1245948176097; Thu, 25 Jun 2009 09:42:56 -0700 (PDT) Received: from localhost ([216.254.16.51]) by mx.google.com with ESMTPS id 24sm9119719wfc.37.2009.06.25.09.42.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 25 Jun 2009 09:42:55 -0700 (PDT) From: Kevin Hilman To: linux-arm-kernel@lists.arm.linux.org.uk Cc: linux-omap@vger.kernel.org Subject: [PATCH 04/11] OMAP3: PM: Ensure PRCM interrupts are cleared at boot Date: Thu, 25 Jun 2009 09:41:57 -0700 Message-Id: <1245948124-24111-5-git-send-email-khilman@deeprootsystems.com> X-Mailer: git-send-email 1.6.3.2 In-Reply-To: <1245948124-24111-4-git-send-email-khilman@deeprootsystems.com> References: <1245948124-24111-1-git-send-email-khilman@deeprootsystems.com> <1245948124-24111-2-git-send-email-khilman@deeprootsystems.com> <1245948124-24111-3-git-send-email-khilman@deeprootsystems.com> <1245948124-24111-4-git-send-email-khilman@deeprootsystems.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Any pending PRCM interrupts can prevent retention. Ensure they are cleared during boot. Signed-off-by: Kevin Hilman --- arch/arm/mach-omap2/pm34xx.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c index 765cdc0..cc83dfc 100644 --- a/arch/arm/mach-omap2/pm34xx.c +++ b/arch/arm/mach-omap2/pm34xx.c @@ -613,6 +613,9 @@ static void __init prcm_setup_regs(void) /* Clear any pending PRCM interrupts */ prm_write_mod_reg(0, OCP_MOD, OMAP3_PRM_IRQSTATUS_MPU_OFFSET); + /* Clear any pending PRCM interrupts */ + prm_write_mod_reg(0, OCP_MOD, OMAP3_PRM_IRQSTATUS_MPU_OFFSET); + omap3_iva_idle(); omap3_d2d_idle(); }