]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
irqchip: dw-apb-ictl: Enable IRQ_GC_MASK_CACHE_PER_TYPE
authorJisheng Zhang <jszhang@marvell.com>
Wed, 12 Nov 2014 06:22:53 +0000 (14:22 +0800)
committerJason Cooper <jason@lakedaemon.net>
Wed, 26 Nov 2014 16:07:54 +0000 (16:07 +0000)
The irq_chip_type instances have separate mask registers, so we need to
enable IRQ_GC_MASK_CACHE_PER_TYPE to actually handle separate mask registers.

Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Link: https://lkml.kernel.org/r/1415773374-4629-3-git-send-email-jszhang@marvell.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
drivers/irqchip/irq-dw-apb-ictl.c

index fcc338584bda0aa202678c45cb127260fbc34aab..c136b67740de85aabe7e806a0e7ce4bcf035da8d 100644 (file)
@@ -115,6 +115,7 @@ static int __init dw_apb_ictl_init(struct device_node *np,
 
        ret = irq_alloc_domain_generic_chips(domain, 32, (nrirqs > 32) ? 2 : 1,
                                             np->name, handle_level_irq, clr, 0,
+                                            IRQ_GC_MASK_CACHE_PER_TYPE |
                                             IRQ_GC_INIT_MASK_CACHE);
        if (ret) {
                pr_err("%s: unable to alloc irq domain gc\n", np->full_name);