of/irq: Fix lookup to use 'interrupts-extended' property first
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 6 Aug 2014 20:02:27 +0000 (13:02 -0700)
committerGrant Likely <grant.likely@linaro.org>
Sat, 16 Aug 2014 08:03:58 +0000 (09:03 +0100)
commita9ecdc0fdc54aa499604dbd43132988effcac9b4
treee2722c7181c48498d01f54224e89f5d6e49c0aa4
parentb951f9dc7f25fc1e39aafda5edb4b47b38285d9f
of/irq: Fix lookup to use 'interrupts-extended' property first

In case the Device Tree blob passed by the boot agent supplies both an
'interrupts-extended' and an 'interrupts' property in order to allow for
older kernels to be usable, prefer the new-style 'interrupts-extended'
property which conveys a lot more information.

This allows us to have bootloaders willingly maintaining backwards
compatibility with older kernels without entirely deprecating the
'interrupts' property.

Update the bindings documentation to describe a situation where both the
'interrupts-extended' and the 'interrupts' property are present, and
which one takes precedence over the other.

Cc: stable@vger.kernel.org # 3.13+
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Grant Likely <grant.likely@linaro.org>
Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
drivers/of/irq.c