Skip to contentSkip to conversation

regmap: irq: Enable irq retriggering for nested irqs

PATCH In review Grygorii Strashko 2 participants 2 messages Feb 26, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 regmap: irq: Enable irq retriggering for nested irqs

When nested interrupts are handled with regmap irq framework, we need to mark the interrupts to be resend for pending interrupts on enable_irq. Else the events might be lost for nested irqs.

---
 drivers/base/regmap/regmap-irq.c | 1 +
 1 file changed, 1 insertion(+)
drivers/base/regmap/regmap-irq.c +1 -0
index 9b0d202..8d9004d 100644
@@ -379,6 +379,7 @@ static int regmap_irq_map(struct irq_domain *h, unsigned int virq,
 	irq_set_chip_data(virq, data);
 	irq_set_chip(virq, &data->irq_chip);
 	irq_set_nested_thread(virq, 1);
+	irq_set_parent(virq, data->irq);
 	irq_set_noprobe(virq);
 
 	return 0;
Signature · 1 line
2.7.2
Tested-by on v1 1/1
#1 lore raw
Quoted 15 lines · Grygorii Strashko

When nested interrupts are handled with regmap irq framework, we need to mark the interrupts to be resend for pending interrupts on enable_irq. Else the events might be lost for nested irqs.

---
 drivers/base/regmap/regmap-irq.c | 1 +
 1 file changed, 1 insertion(+)
drivers/base/regmap/regmap-irq.c +0 -0
index 9b0d202..8d9004d 100644

drivers/base/regmap/regmap-irq.c static int regmap_irq_map(struct irq_domain *h, unsigned int virq, · line 385

Quoted 7 lines
drivers/base/regmap/regmap-irq.c +1 -0
@@ -379,6 +379,7 @@ static int regmap_irq_map(struct irq_domain *h, unsigned int virq,
 	irq_set_chip_data(virq, data);
 	irq_set_chip(virq, &data->irq_chip);
 	irq_set_nested_thread(virq, 1);
+	irq_set_parent(virq, data->irq);
 	irq_set_noprobe(virq);
 
 	return 0;

This is part of the fixes seen to be needed for VBUS irq over Palmas seen on BeagleBoard-X15.

this patch was part of an internal series which finally resolved the crash (and associated hang) on X15 resume path.

Signature · 2 lines
Regards,
Nishanth Menon