diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2015-12-29 04:08:45 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2015-12-29 04:08:45 -0500 |
commit | 92b86f92ed0307efbaea3c0e95520551848d3995 (patch) | |
tree | 20db0701571353b7e20a9417516616b4b60ebffa /drivers/irqchip/irq-gic.c | |
parent | a4289dc2ec3a5821076a78ee9678909b4eff297e (diff) | |
parent | 0644b3daca28dcb320373ae20069c269c9386304 (diff) |
Merge branch 'irq/gic-v2m-acpi' of git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms into irq/core
Pull another round of GIC changes from Marc:
ACPI support for GIV-v2m
Diffstat (limited to 'drivers/irqchip/irq-gic.c')
-rw-r--r-- | drivers/irqchip/irq-gic.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/irqchip/irq-gic.c b/drivers/irqchip/irq-gic.c index fcbe0b90870d..911758c056c1 100644 --- a/drivers/irqchip/irq-gic.c +++ b/drivers/irqchip/irq-gic.c | |||
@@ -957,7 +957,7 @@ static int gic_irq_domain_translate(struct irq_domain *d, | |||
957 | return 0; | 957 | return 0; |
958 | } | 958 | } |
959 | 959 | ||
960 | if (fwspec->fwnode->type == FWNODE_IRQCHIP) { | 960 | if (is_fwnode_irqchip(fwspec->fwnode)) { |
961 | if(fwspec->param_count != 2) | 961 | if(fwspec->param_count != 2) |
962 | return -EINVAL; | 962 | return -EINVAL; |
963 | 963 | ||
@@ -1228,7 +1228,7 @@ gic_of_init(struct device_node *node, struct device_node *parent) | |||
1228 | } | 1228 | } |
1229 | 1229 | ||
1230 | if (IS_ENABLED(CONFIG_ARM_GIC_V2M)) | 1230 | if (IS_ENABLED(CONFIG_ARM_GIC_V2M)) |
1231 | gicv2m_of_init(node, gic_data[gic_cnt].domain); | 1231 | gicv2m_init(&node->fwnode, gic_data[gic_cnt].domain); |
1232 | 1232 | ||
1233 | gic_cnt++; | 1233 | gic_cnt++; |
1234 | return 0; | 1234 | return 0; |
@@ -1353,6 +1353,10 @@ static int __init gic_v2_acpi_init(struct acpi_subtable_header *header, | |||
1353 | __gic_init_bases(0, -1, dist_base, cpu_base, 0, domain_handle); | 1353 | __gic_init_bases(0, -1, dist_base, cpu_base, 0, domain_handle); |
1354 | 1354 | ||
1355 | acpi_set_irq_model(ACPI_IRQ_MODEL_GIC, domain_handle); | 1355 | acpi_set_irq_model(ACPI_IRQ_MODEL_GIC, domain_handle); |
1356 | |||
1357 | if (IS_ENABLED(CONFIG_ARM_GIC_V2M)) | ||
1358 | gicv2m_init(NULL, gic_data[0].domain); | ||
1359 | |||
1356 | return 0; | 1360 | return 0; |
1357 | } | 1361 | } |
1358 | IRQCHIP_ACPI_DECLARE(gic_v2, ACPI_MADT_TYPE_GENERIC_DISTRIBUTOR, | 1362 | IRQCHIP_ACPI_DECLARE(gic_v2, ACPI_MADT_TYPE_GENERIC_DISTRIBUTOR, |