]> git.baikalelectronics.ru Git - kernel.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)
commita41c647de5ab6db945d84f57c4a280a8668edee9
tree1a3cc19743ec04936f504bd57c848432bfc3f8ef
parent00d7338ae39fa4d87e273401c424ad7e97562e7e
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