summaryrefslogtreecommitdiff
path: root/scripts/dtc
diff options
context:
space:
mode:
authorBrian Masney <masneyb@onstation.org>2019-01-19 23:42:41 +0300
committerLinus Walleij <linus.walleij@linaro.org>2019-01-24 17:32:52 +0300
commit12a9eeaebba34f4f0abe1548ecb460414e285c49 (patch)
tree298833e6d572f9a81155610cf341c926cc8bcc94 /scripts/dtc
parentcfacef373505dce8735c562a147d14611db259b9 (diff)
downloadlinux-12a9eeaebba34f4f0abe1548ecb460414e285c49.tar.xz
spmi: pmic-arb: convert to v2 irq interfaces to support hierarchical IRQ chips
Convert the spmi-pmic-arb IRQ code to use the version 2 IRQ interface in order to support hierarchical IRQ chips. This is necessary so that spmi-gpio can be setup as a hierarchical IRQ chip with pmic-arb as the parent. IRQ chips in device tree should be usable from the start without the consumer having to make an additional call to gpio[d]_to_irq() to get the proper IRQ on the parent. The old qpnpint_irq_domain_map function would hardcode the handler as handle_level_irq, however qpnpint_irq_set_type would later override the handler. Properly set the handler when the IRQ is mapped. This new code doesn't return an error for IRQ_TYPE_NONE and preserves the existing behavior of using handle_level_irq since there are some broken device tree bindings that need to be corrected first. Driver was tested on a LG Nexus 5 (hammerhead) phone. Signed-off-by: Brian Masney <masneyb@onstation.org> Reviewed-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'scripts/dtc')
0 files changed, 0 insertions, 0 deletions