regmap: irq: Enable irq retriggering for nested irqs
Subsystems (2)
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
@@ -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
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.Signed-off-by Grygorii Strashko <[email protected]>--- drivers/base/regmap/regmap-irq.c | 1 + 1 file changed, 1 insertion(+)drivers/base/regmap/regmap-irq.c +0
-0
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