]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf182422617d73e6dddc2e9ce84c8e97f468ceca9
treee2722c7181c48498d01f54224e89f5d6e49c0aa4
parent7d71cda026d0c54e7d3b5c8a6024dcc245839646
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