]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
regmap: irq: Enable irq retriggering for nested irqs
authorGrygorii Strashko <grygorii.strashko@ti.com>
Fri, 26 Feb 2016 15:53:57 +0000 (17:53 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 29 Feb 2016 14:00:49 +0000 (23:00 +0900)
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 <grygorii.strashko@ti.com>
Tested-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap-irq.c

index 36d08ca2cbe2f1584776de5f65ad9351b67e70fd..26f799e71c82355e02ef58ff9847cef33545e444 100644 (file)
@@ -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;