summaryrefslogtreecommitdiff
path: root/kernel/irq
diff options
context:
space:
mode:
authorTodd Poynor <toddpoynor@google.com>2011-01-24 14:36:39 -0800
committerColin Cross <ccross@android.com>2012-04-09 13:53:09 -0700
commitc8ffd5b3852c164f41b89a40b3f3ffd65299b93a (patch)
treedc4468a58e7f1d77d583d8b5de2df103ede9aac4 /kernel/irq
parent2ccc409884d5e3d64f40d54befb4cd60d0b2c9ab (diff)
PM: Print pending wakeup IRQ preventing suspend to dmesg
Prints the name of the first action for a pending wakeup IRQ. Change-Id: I36f90735c75fb7c7ab1084775ec0d0ab02336e6e Signed-off-by: Todd Poynor <toddpoynor@google.com>
Diffstat (limited to 'kernel/irq')
-rw-r--r--kernel/irq/pm.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/kernel/irq/pm.c b/kernel/irq/pm.c
index 15e53b1766a..fe4b09cf829 100644
--- a/kernel/irq/pm.c
+++ b/kernel/irq/pm.c
@@ -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;
}
/*