]> asedeno.scripts.mit.edu Git - linux.git/commit
irqchip/gic: Rework gic_configure_irq to take the full ICFGR base
authorMarc Zyngier <maz@kernel.org>
Tue, 16 Jul 2019 13:35:17 +0000 (14:35 +0100)
committerMarc Zyngier <maz@kernel.org>
Tue, 20 Aug 2019 09:04:09 +0000 (10:04 +0100)
commit13d22e2e1f35f2d3cc7ddc002c23e733c2782dd4
tree1a3cc19743ec04936f504bd57c848432bfc3f8ef
parentb977fcf477c176e5f41775f0ea139f935b0f25b7
irqchip/gic: Rework gic_configure_irq to take the full ICFGR base

gic_configure_irq is currently passed the (re)distributor address,
to which it applies an a fixed offset to get to the configuration
registers. This offset is constant across all GICs, or rather it was
until to v3.1...

An easy way out is for the individual drivers to pass the base
address of the configuration register for the considered interrupt.
At the same time, move part of the error handling back to the
individual drivers, as things are about to change on that front.

Signed-off-by: Marc Zyngier <maz@kernel.org>
drivers/irqchip/irq-gic-common.c
drivers/irqchip/irq-gic-v3.c
drivers/irqchip/irq-gic.c
drivers/irqchip/irq-hip04.c