spmi: pmic-arb: Move the ownership check to irq_chip callback
authorKiran Gunda <kgunda@codeaurora.org>
Wed, 23 Aug 2017 12:46:26 +0000 (18:16 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 11:52:22 +0000 (13:52 +0200)
commit2fb4f2581d3ab3513fe44d35f9b9e79d89b1f521
tree4439cf023159f0dcfa19b86de92606ce9547291a
parente55fe64a198d2657e24f9fca5cd6e7e7f13e0b2f
spmi: pmic-arb: Move the ownership check to irq_chip callback

Check the irq ownership in the irq_request_resources callback
instead of checking it during the irq mapping. This can prevent
installing the flow handler for the interrupt that is not owned by the EE
and allow the irq translation during the gpio driver probe.

Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
Tested-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/spmi/spmi-pmic-arb.c