Print pending wakeup IRQ preventing suspend to dmesg
authorTodd Poynor <toddpoynor@google.com>
Mon, 24 Jan 2011 22:36:39 +0000 (14:36 -0800)
committerColin Cross <ccross@android.com>
Tue, 14 Jun 2011 16:09:50 +0000 (09:09 -0700)
Change-Id: I36f90735c75fb7c7ab1084775ec0d0ab02336e6e
Signed-off-by: Todd Poynor <toddpoynor@google.com>
kernel/irq/pm.c

index f76fc00c98776746a12fb5dce9111cb4033b1553..85c13082b0c79eada9af936728156e6f601b5539 100644 (file)
@@ -70,8 +70,11 @@ int check_wakeup_irqs(void)
 
        for_each_irq_desc(irq, desc) {
                if (irqd_is_wakeup_set(&desc->irq_data)) {
-                       if (desc->istate & IRQS_PENDING)
+                       if (desc->istate & IRQS_PENDING) {
+                               pr_info("Wakeup IRQ %d %s pending, suspend aborted\n",
+                                       irq, desc->name ? desc->name : "");
                                return -EBUSY;
+                       }
                        continue;
                }
                /*