From patchwork Thu Dec 2 11:10:28 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Santosh Shilimkar X-Patchwork-Id: 373861 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 oB2BAXDu010370 for ; Thu, 2 Dec 2010 11:10:33 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757440Ab0LBLKc (ORCPT ); Thu, 2 Dec 2010 06:10:32 -0500 Received: from na3sys009aog114.obsmtp.com ([74.125.149.211]:57488 "EHLO na3sys009aog114.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755394Ab0LBLKb (ORCPT ); Thu, 2 Dec 2010 06:10:31 -0500 Received: from source ([209.85.216.180]) (using TLSv1) by na3sys009aob114.postini.com ([74.125.148.12]) with SMTP ID DSNKTPd+ppRr6Bvwxxi6McKnHAXlMTpG9hF8@postini.com; Thu, 02 Dec 2010 03:10:31 PST Received: by mail-qy0-f180.google.com with SMTP id 29so8537935qyk.18 for ; Thu, 02 Dec 2010 03:10:30 -0800 (PST) Received: by 10.224.54.72 with SMTP id p8mr9113639qag.126.1291288230536; Thu, 02 Dec 2010 03:10:30 -0800 (PST) From: Santosh Shilimkar References: <1c6ea016b8c01ee8b470e95fdcae4ee0@mail.gmail.com> MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcuSDJXCfDLyB/u6TIWKi6p1pgOTlwAAEjqw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 Date: Thu, 2 Dec 2010 16:40:28 +0530 Message-ID: <09fd160109a43efec9a472055d541c9e@mail.gmail.com> Subject: RE: Unbalanced IRQ wake disable during resume from static suspend To: Govindraj Cc: Paul Walmsley , linux-omap@vger.kernel.org, khilman@deeprootsystems.com 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]); Thu, 02 Dec 2010 11:10:33 +0000 (UTC) diff --git a/arch/arm/mach-omap2/irq.c b/arch/arm/mach-omap2/irq.c index 32eeabe..6a964d3 100644 --- a/arch/arm/mach-omap2/irq.c +++ b/arch/arm/mach-omap2/irq.c @@ -143,11 +143,21 @@ static void omap_mask_ack_irq(unsigned int irq) omap_ack_irq(irq); } +#ifdef CONFIG_PM +static int omap_set_wake(unsigned int irq, unsigned int on) +{ + return 0; +} +#else +#define omap_set_wake NULL +#endif + static struct irq_chip omap_irq_chip = { .name = "INTC", .ack = omap_mask_ack_irq, .mask = omap_mask_irq, .unmask = omap_unmask_irq, + .set_wake = omap_set_wake, }; static void __init omap_irq_bank_init_one(struct omap_irq_bank *bank)