]> git.karo-electronics.de Git - karo-tx-linux.git/commit
irqchip/mips-gic: Remove device IRQ domain
authorPaul Burton <paul.burton@imgtec.com>
Thu, 20 Apr 2017 09:07:35 +0000 (10:07 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 20 Apr 2017 14:07:02 +0000 (16:07 +0200)
commitb87281e7f205eda08c911fdacd27d4d2f01daa09
treefa2b609c883db0162b14da5eefac3d0945d8cca6
parentf8dcd9e81797ae24acc44c84f0eb3b9e6cee9791
irqchip/mips-gic: Remove device IRQ domain

In commit c98c1822ee13 ("irqchip/mips-gic: Add device hierarchy domain")
Qais indicates that he felt having a separate device IRQ domain was
cleaner, but along with everyone else I'm aware of touching this driver
I disagree.

Remove the separate device IRQ domain so that we simply have the main
GIC IRQ domain used for devices, and an IPI IRQ domain as a child. The
logic for handling the device interrupts & IPIs is cleanly separated
into the appropriate domain ops, making it much easier to reason about
what the driver is doing than the previous approach where the 2 child
domains had to call up to their parent, which had to handle both types
of interrupt & had all sorts of weird & wonderful duplication or
outright clobbering of setup performed by multiple domains.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Signed-off-by: Matt Redfearn <matt.redfearn@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Link: http://lkml.kernel.org/r/1492679256-14513-3-git-send-email-matt.redfearn@imgtec.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/irqchip/irq-mips-gic.c