PM: Print pending wakeup IRQ preventing suspend to dmesg
authorTodd Poynor <toddpoynor@google.com>
Mon, 24 Jan 2011 22:36:39 +0000 (14:36 -0800)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 20:34:57 +0000 (13:34 -0700)
Prints the name of the first action for a pending wakeup IRQ.

Change-Id: I36f90735c75fb7c7ab1084775ec0d0ab02336e6e
Signed-off-by: Todd Poynor <toddpoynor@google.com>
kernel/irq/pm.c

index 15e53b1766a653e4634eea3278e19354211378a1..fe4b09cf829ca2625559e972d6eb8671e3182cdd 100644 (file)
@@ -104,8 +104,13 @@ 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->action && desc->action->name ?
+                                       desc->action->name : "");
                                return -EBUSY;
+                       }
                        continue;
                }
                /*