diff options
| author | Todd Poynor <toddpoynor@google.com> | 2011-01-24 14:36:39 -0800 | 
|---|---|---|
| committer | Arve Hjønnevåg <arve@android.com> | 2013-07-01 13:34:57 -0700 | 
| commit | b47faa23a40143b2545297b4d626e34feabf33cd (patch) | |
| tree | 15b7f8fa338efb55fe99be004fdf50301847906a /kernel | |
| parent | 196fc8d2bdb2be2d45ce8306aa004adcc3fa1b61 (diff) | |
| download | olio-linux-3.10-b47faa23a40143b2545297b4d626e34feabf33cd.tar.xz olio-linux-3.10-b47faa23a40143b2545297b4d626e34feabf33cd.zip | |
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')
| -rw-r--r-- | kernel/irq/pm.c | 7 | 
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;  		}  		/* |