Skip to content

Commit 9c6079a

Browse files
committed
genirq: Do not consider disabled wakeup irqs
If an wakeup interrupt has been disabled before the suspend code disables all interrupts then we have to ignore the pending flag. Otherwise we would abort suspend over and over as nothing clears the pending flag because the interrupt is disabled. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: NeilBrown <neilb@suse.de>
1 parent d4dc0f9 commit 9c6079a

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎kernel/irq/pm.c‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,13 @@ int check_wakeup_irqs(void)
103103
int irq;
104104

105105
for_each_irq_desc(irq, desc) {
106+
/*
107+
* Only interrupts which are marked as wakeup source
108+
* and have not been disabled before the suspend check
109+
* can abort suspend.
110+
*/
106111
if (irqd_is_wakeup_set(&desc->irq_data)) {
107-
if (desc->istate & IRQS_PENDING)
112+
if (desc->depth == 1 && desc->istate & IRQS_PENDING)
108113
return -EBUSY;
109114
continue;
110115
}

0 commit comments

Comments
 (0)