Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

of: irq: Ignore disabled intc's when searching map

When searching the interrupt map, if a matched parent is disabled, just
ignore it and move on with the search.

This allows for specifying connection of a single device IRQ to
multiple interrupt controllers via the interrupt map schema. This change
allows for selection of the active interrupt controller via the already
existing status = "disabled" mechanism.

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Rob Herring <rob.herring@calxeda.com>

authored by

Peter Crosthwaite and committed by
Rob Herring
1ca56e7d bf49be02

+3
+3
drivers/of/irq.c
··· 217 217 goto fail; 218 218 } 219 219 220 + if (!of_device_is_available(newpar)) 221 + match = 0; 222 + 220 223 /* Get #interrupt-cells and #address-cells of new 221 224 * parent 222 225 */