]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7ec8f28e54edafc70fbd105db8e9da0fe2e729c7
tree4439cf023159f0dcfa19b86de92606ce9547291a
parent130a330ae7bb92e4cd9309c16556f6ae7dd6d944
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