Skip to contentSkip to conversation

irqchip: ingenic: Leave parent IRQ unmasked on suspend

PATCH Applied Paul Cercueil 3 participants 4 messages Aug 19, 2020 – Aug 25, 2020

Subsystems (2)
lore
Share & tools
lore

Paul Cercueil

author maintainer
#0 lore raw

PATCH 1/1 irqchip: ingenic: Leave parent IRQ unmasked on suspend

All the wakeup sources we possibly want will go through the interrupt controller, so the parent IRQ must not be masked during suspend, or there won't be any way to wake up the system.

---
 drivers/irqchip/irq-ingenic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/irqchip/irq-ingenic.c +1 -1
index 9f3da4260ca6..b61a8901ef72 100644
@@ -125,7 +125,7 @@ static int __init ingenic_intc_of_init(struct device_node *node,
 		irq_reg_writel(gc, IRQ_MSK(32), JZ_REG_INTC_SET_MASK);
 	}
 
-	if (request_irq(parent_irq, intc_cascade, 0,
+	if (request_irq(parent_irq, intc_cascade, IRQF_NO_SUSPEND,
 			"SoC intc cascade interrupt", NULL))
 		pr_err("Failed to register SoC intc cascade interrupt\n");
 	return 0;
Signature · 1 line
2.28.0
#1 lore raw
Quoted 5 lines · Paul Cercueil

All the wakeup sources we possibly want will go through the interrupt controller, so the parent IRQ must not be masked during suspend, or there won't be any way to wake up the system.

Do you have a Fixes: tag? Does it need to be Cc: to stable?

Thanks,

        M.
Signature · 1 line
Jazz is not dead. It just smells funny...
author maintainer
#2 lore raw

Hi Marc,

Quoted 8 lines · Marc Zyngier
Quoted 5 lines · Paul Cercueil

All the wakeup sources we possibly want will go through the interrupt controller, so the parent IRQ must not be masked during suspend, or there won't be any way to wake up the system.

Do you have a Fixes: tag? Does it need to be Cc: to stable?

The driver never had it since its creation, so I'm not sure it needs a Fixes: tag.

Cheers,
-Paul

Quoted 5 lines

Thanks,

        M.

--
Jazz is not dead. It just smells funny...

merge bot Applied
#3 lore raw

[tip: irq/urgent] irqchip/ingenic: Leave parent IRQ unmasked on suspend

In reply to Paul Cercueil
The following commit has been merged into the irq/urgent branch of tip:

The following commit has been merged into the irq/urgent branch of tip:

Commit-ID:     821fc9e261f3af235752f46e59084467cfd440c4
Gitweb:        https://git.kernel.org/tip/821fc9e261f3af235752f46e59084467cfd440c4
Author:        Paul Cercueil <[email protected]>
AuthorDate:    Wed, 19 Aug 2020 20:06:02 +02:00
Committer:     Marc Zyngier <[email protected]>
CommitterDate: Tue, 25 Aug 2020 10:59:29 +01:00

irqchip/ingenic: Leave parent IRQ unmasked on suspend

All the wakeup sources we possibly want will go through the interrupt controller, so the parent IRQ must not be masked during suspend, or there won't be any way to wake up the system.

---
 drivers/irqchip/irq-ingenic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/irqchip/irq-ingenic.c +1 -1
index 9f3da42..b61a890 100644
@@ -125,7 +125,7 @@ static int __init ingenic_intc_of_init(struct device_node *node,
 		irq_reg_writel(gc, IRQ_MSK(32), JZ_REG_INTC_SET_MASK);
 	}
 
-	if (request_irq(parent_irq, intc_cascade, 0,
+	if (request_irq(parent_irq, intc_cascade, IRQF_NO_SUSPEND,
 			"SoC intc cascade interrupt", NULL))
 		pr_err("Failed to register SoC intc cascade interrupt\n");
 	return 0;