]> asedeno.scripts.mit.edu Git - linux.git/commit
irqchip/irq-mvebu-icu: Disociate ICU and NSR
authorMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 1 Oct 2018 14:13:49 +0000 (16:13 +0200)
committerMarc Zyngier <marc.zyngier@arm.com>
Tue, 2 Oct 2018 10:59:50 +0000 (11:59 +0100)
commit00885a77c8ffbeee58a9662c92d6a60a9b49f120
tree7445816130b201658ef65851d044616c6f60c383
parent9770c66778489d5fdbb3ba4e807adac724a55397
irqchip/irq-mvebu-icu: Disociate ICU and NSR

NSR (non-secure interrupts) are handled in the ICU driver like if there
was only this type of interrupt in the ICU. Change this behavior to
prepare the introduction of SEI (System Error Interrupts) support by
moving the NSR code in a separate function. This is done under the form
of a 'probe' function to ease future migration to NSR/SEI being platform
devices part of the ICU. The 'icu' structure is passed as driver data
and not as a parameter for the same reason.

Reviewed-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-mvebu-icu.c