regmap: no need primary handler for nested irq
Yunfan Zhang [Sat, 8 Sep 2012 10:53:25 +0000 (03:53 -0700)]
The primary handler will NOT be called if the interrupt nests into
another interrupt thread. Remove it to avoid confusing.

Signed-off-by: Yunfan Zhang <yfzhang@marvell.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 81380739516730124067576c9cc9f2418be5bf36)

Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Change-Id: If06302d8d5806c00f34dd473b3ad937ebe626000
Reviewed-on: http://git-master/r/161555
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

drivers/base/regmap/regmap-irq.c

index 5eeb32b..1913d39 100644 (file)
@@ -201,7 +201,7 @@ static int regmap_irq_map(struct irq_domain *h, unsigned int virq,
        struct regmap_irq_chip_data *data = h->host_data;
 
        irq_set_chip_data(virq, data);
-       irq_set_chip_and_handler(virq, &data->irq_chip, handle_edge_irq);
+       irq_set_chip(virq, &data->irq_chip);
        irq_set_nested_thread(virq, 1);
 
        /* ARM needs us to explicitly flag the IRQ as valid