summaryrefslogtreecommitdiffstats
path: root/drivers/irqchip/irq-gic-v3-its.c
diff options
context:
space:
mode:
authorMarc Zyngier2018-05-30 18:29:52 +0200
committerMarc Zyngier2018-07-16 15:22:19 +0200
commita4f9edb29d9c19f9f8dcd2df7ddfe4eb7ad58996 (patch)
tree538e0c5c70a2f711aacdcde60afebcfabf6612aa /drivers/irqchip/irq-gic-v3-its.c
parentirqchip/gic-v3-its: Drop chunk allocation compatibility (diff)
downloadkernel-qcow2-linux-a4f9edb29d9c19f9f8dcd2df7ddfe4eb7ad58996.tar.gz
kernel-qcow2-linux-a4f9edb29d9c19f9f8dcd2df7ddfe4eb7ad58996.tar.xz
kernel-qcow2-linux-a4f9edb29d9c19f9f8dcd2df7ddfe4eb7ad58996.zip
irqchip/gic-v3: Expose GICD_TYPER in the rdist structure
Instead of exposing the GIC distributor IntID field in the rdist structure that is passed to the ITS, let's replace it with a copy of the whole GICD_TYPER register. We are going to need some of this information at a later time. No functionnal change. Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'drivers/irqchip/irq-gic-v3-its.c')
-rw-r--r--drivers/irqchip/irq-gic-v3-its.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c
index 9c5b85577053..efe6d1a6c32e 100644
--- a/drivers/irqchip/irq-gic-v3-its.c
+++ b/drivers/irqchip/irq-gic-v3-its.c
@@ -1616,7 +1616,7 @@ static int __init its_alloc_lpi_tables(void)
{
phys_addr_t paddr;
- lpi_id_bits = gic_rdists->id_bits;
+ lpi_id_bits = GICD_TYPER_ID_BITS(gic_rdists->gicd_typer);
gic_rdists->prop_page = its_allocate_prop_table(GFP_NOWAIT);
if (!gic_rdists->prop_page) {
pr_err("Failed to allocate PROPBASE\n");