aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/irqchip/irq-gic-v2m.c
diff options
context:
space:
mode:
authorMarc Zyngier <maz@kernel.org>2019-07-31 16:13:42 +0100
committerMarc Zyngier <maz@kernel.org>2019-08-07 14:24:37 +0100
commit7d5b7695c22f6e22d9a16df17f477832eef8e2b7 (patch)
treee5a8cb67da7c0f66e8cd5e3e4fea3153d76112e1 /drivers/irqchip/irq-gic-v2m.c
parentirqchip/gic: Register the distributor's PA instead of its VA in fwnode (diff)
downloadlinux-dev-7d5b7695c22f6e22d9a16df17f477832eef8e2b7.tar.xz
linux-dev-7d5b7695c22f6e22d9a16df17f477832eef8e2b7.zip
irqchip/gic-v2m: Register the frame's PA instead of its VA in fwnode
Do not expose the frame's VA (it appears in debugfs). Instead, record the PA, which at least can be used to precisely identify the associated irqchip and domain. Acked-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'drivers/irqchip/irq-gic-v2m.c')
-rw-r--r--drivers/irqchip/irq-gic-v2m.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/irqchip/irq-gic-v2m.c b/drivers/irqchip/irq-gic-v2m.c
index 7338f90b2f9e..e88e75c22b6a 100644
--- a/drivers/irqchip/irq-gic-v2m.c
+++ b/drivers/irqchip/irq-gic-v2m.c
@@ -525,7 +525,7 @@ acpi_parse_madt_msi(union acpi_subtable_headers *header,
spi_start, nr_spis);
}
- fwnode = irq_domain_alloc_fwnode((void *)m->base_address);
+ fwnode = irq_domain_alloc_fwnode(&res.start);
if (!fwnode) {
pr_err("Unable to allocate GICv2m domain token\n");
return -EINVAL;