diff options
author | Peter Crosthwaite <peter.crosthwaite@xilinx.com> | 2013-11-28 02:26:12 -0500 |
---|---|---|
committer | Rob Herring <rob.herring@calxeda.com> | 2013-12-04 14:12:50 -0500 |
commit | 1ca56e7dcadd865ae2c235789cbdbfebae719ffb (patch) | |
tree | e7a42e0216db97efd5f360bd64adae59d1dad2f6 | |
parent | bf49be02d6f92b95c2462e5027fc90b98f62e324 (diff) |
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>
-rw-r--r-- | drivers/of/irq.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/of/irq.c b/drivers/of/irq.c index 9876963ed7b3..bf8026895c5e 100644 --- a/drivers/of/irq.c +++ b/drivers/of/irq.c | |||
@@ -217,6 +217,9 @@ int of_irq_parse_raw(const __be32 *addr, struct of_phandle_args *out_irq) | |||
217 | goto fail; | 217 | goto fail; |
218 | } | 218 | } |
219 | 219 | ||
220 | if (!of_device_is_available(newpar)) | ||
221 | match = 0; | ||
222 | |||
220 | /* Get #interrupt-cells and #address-cells of new | 223 | /* Get #interrupt-cells and #address-cells of new |
221 | * parent | 224 | * parent |
222 | */ | 225 | */ |