]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit - drivers/irqchip/irq-crossbar.c
irqchip: crossbar: Check for premapped crossbar before allocating
authorNishanth Menon <nm@ti.com>
Thu, 26 Jun 2014 07:10:20 +0000 (12:40 +0530)
committerJason Cooper <jason@lakedaemon.net>
Mon, 30 Jun 2014 19:11:17 +0000 (19:11 +0000)
commit6f16fc878a51572a998655e5ef1c396cb269648d
treee97ef38d5c8a50c26dc9eefb8648700f81cf27b4
parent1d50d2ce6337724d30055bdbe082236cc86e6785
irqchip: crossbar: Check for premapped crossbar before allocating

If irq_of_parse_and_map is executed twice, the same crossbar is mapped to two
different GIC interrupts. This is completely undesirable. Instead, check
if the requested crossbar event is pre-allocated and provide that GIC
mapping back to caller if already allocated.

Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Sricharan R <r.sricharan@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Link: https://lkml.kernel.org/r/1403766634-18543-3-git-send-email-r.sricharan@ti.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
drivers/irqchip/irq-crossbar.c