Merge branch 'irq/gic-v2m-acpi' of git://git.kernel.org/pub/scm/linux/kernel/git...
authorThomas Gleixner <tglx@linutronix.de>
Tue, 29 Dec 2015 09:08:45 +0000 (10:08 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 29 Dec 2015 09:08:45 +0000 (10:08 +0100)
Pull another round of GIC changes from Marc:

 ACPI support for GIV-v2m

1  2 
drivers/irqchip/irq-gic-v2m.c
drivers/irqchip/irq-gic.c
include/linux/irqchip/arm-gic.h
include/linux/irqdomain.h
kernel/irq/irqdomain.c

index ee1e553ee7a6e52e23ea8dda01f524e3116aad42,7e2975df447301c8106fe51b10c322324f79c714..e2d2d027637da98db6ba770fbd70901a790aa3c7
@@@ -387,9 -397,21 +397,21 @@@ static int __init gicv2m_of_init(struc
                if (!of_find_property(child, "msi-controller", NULL))
                        continue;
  
-               ret = gicv2m_init_one(child, parent);
+               ret = of_address_to_resource(child, 0, &res);
+               if (ret) {
+                       pr_err("Failed to allocate v2m resource.\n");
+                       break;
+               }
+               if (!of_property_read_u32(child, "arm,msi-base-spi",
+                                         &spi_start) &&
+                   !of_property_read_u32(child, "arm,msi-num-spis", &nr_spis))
+                       pr_info("DT overriding V2M MSI_TYPER (base:%u, num:%u)\n",
+                               spi_start, nr_spis);
+               ret = gicv2m_init_one(&child->fwnode, spi_start, nr_spis, &res);
                if (ret) {
 -                      of_node_put(node);
 +                      of_node_put(child);
                        break;
                }
        }
Simple merge
Simple merge
Simple merge
Simple merge