From patchwork Fri Nov 19 11:26:33 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ext-madhusudhan.1.gowda@nokia.com X-Patchwork-Id: 339131 X-Patchwork-Delegate: khilman@deeprootsystems.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oAJBbXY3015526 for ; Fri, 19 Nov 2010 11:37:34 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753825Ab0KSLhc (ORCPT ); Fri, 19 Nov 2010 06:37:32 -0500 Received: from smtp.nokia.com ([147.243.128.24]:23466 "EHLO mgw-da01.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753091Ab0KSLhb (ORCPT ); Fri, 19 Nov 2010 06:37:31 -0500 Received: from nokia.com (localhost [127.0.0.1]) by mgw-da01.nokia.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id oAJBbTei020130; Fri, 19 Nov 2010 13:37:29 +0200 Received: from localhost.localdomain ([helruo-dhcp022210.ntc.nokia.com [172.21.22.210]]) by mgw-da01.nokia.com with RELAY id oAJBbKYn019955 ; Fri, 19 Nov 2010 13:37:23 +0200 From: Madhusudhan Gowda To: linux-omap@vger.kernel.org Cc: paul@pwsan.com, Madhusudhan Gowda Subject: [PATCH] OMAP3: PM: PRCM interrupt: Fix warning "MPU wakeup but no wakeup sources" Date: Fri, 19 Nov 2010 13:26:33 +0200 Message-Id: <1290165993-23847-1-git-send-email-ext-madhusudhan.1.gowda@nokia.com> X-Mailer: git-send-email 1.6.3.3 X-Nokia-AV: Clean Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Fri, 19 Nov 2010 11:37:34 +0000 (UTC) diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c index 75c0cd1..d9a35d7 100644 --- a/arch/arm/mach-omap2/pm34xx.c +++ b/arch/arm/mach-omap2/pm34xx.c @@ -266,6 +266,7 @@ static irqreturn_t prcm_interrupt_handler (int irq, void *dev_id) { u32 irqenable_mpu, irqstatus_mpu; int c = 0; + int ct = 0; irqenable_mpu = prm_read_mod_reg(OCP_MOD, OMAP3_PRM_IRQENABLE_MPU_OFFSET); @@ -277,13 +278,16 @@ static irqreturn_t prcm_interrupt_handler (int irq, void *dev_id) if (irqstatus_mpu & (OMAP3430_WKUP_ST_MASK | OMAP3430_IO_ST_MASK)) { c = _prcm_int_handle_wakeup(); + ct++; /* * Is the MPU PRCM interrupt handler racing with the * IVA2 PRCM interrupt handler ? */ - WARN(c == 0, "prcm: WARNING: PRCM indicated MPU wakeup " - "but no wakeup sources are marked\n"); + if (ct == 1) + WARN(c == 0, "prcm: WARNING: PRCM indicated " + "MPU wakeup but no wakeup sources " + "are marked\n"); } else { /* XXX we need to expand our PRCM interrupt handler */ WARN(1, "prcm: WARNING: PRCM interrupt received, but "