spmi: pmic-arb: validate type when mapping IRQ
authorBrian Masney <masneyb@onstation.org>
Sat, 19 Jan 2019 20:42:51 +0000 (15:42 -0500)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 24 Jan 2019 14:33:33 +0000 (15:33 +0100)
commit135ef21ab064dd9811b51d5fa225829011adb10c
tree52581e6acb8953d9de1cad6586e29bf1c7986d65
parentf14a5e6da4a50e78a18384faf81eef6171909d3f
spmi: pmic-arb: validate type when mapping IRQ

qpnpint_irq_domain_map did not validate the IRQ type and this can cause
IRQs to not work as expected if an unsupported type (such as
IRQ_TYPE_NONE) is passed in. Now that spmi-gpio is a hierarchical IRQ
controller, and all device tree bindings have been updated, add
additional validation to the type field.

Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/spmi/spmi-pmic-arb.c