mirror of
https://github.com/torvalds/linux.git
synced 2026-06-10 07:32:29 +02:00
Print pending wakeup IRQ preventing suspend to dmesg
Change-Id: I36f90735c75fb7c7ab1084775ec0d0ab02336e6e Signed-off-by: Todd Poynor <toddpoynor@google.com>
This commit is contained in:
parent
700df3ba93
commit
eac4ccd163
|
|
@ -72,8 +72,12 @@ int check_wakeup_irqs(void)
|
|||
int irq;
|
||||
|
||||
for_each_irq_desc(irq, desc)
|
||||
if ((desc->status & IRQ_WAKEUP) && (desc->status & IRQ_PENDING))
|
||||
if ((desc->status & IRQ_WAKEUP) &&
|
||||
(desc->status & IRQ_PENDING)) {
|
||||
pr_info("Wakeup IRQ %d %s pending, suspend aborted\n",
|
||||
irq, desc->name ? desc->name : "");
|
||||
return -EBUSY;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user