irqchip/qcom-pdc: Add irqchip set/get state calls
authorMaulik Shah <mkshah@codeaurora.org>
Fri, 15 Nov 2019 22:11:50 +0000 (15:11 -0700)
committerMarc Zyngier <maz@kernel.org>
Sat, 16 Nov 2019 10:22:01 +0000 (10:22 +0000)
commite71374c07564536d38caed3e80a1ff1c4609161d
treee4f6ea4bb850fdcb5051c9e8adcbecfb227940ff
parent81ef8bf88065b07d597c723ca5b0f1f10a808de4
irqchip/qcom-pdc: Add irqchip set/get state calls

Add irqchip calls to set/get interrupt state from the parent interrupt
controller. When GPIOs are renabled as interrupt lines, it is desirable
to clear the interrupt state at the GIC. This avoids any unwanted
interrupt as a result of stale pending state recorded when the line was
used as a GPIO.

Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
[Lina: updated commit text, rearranged code]
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/1573855915-9841-8-git-send-email-ilina@codeaurora.org
drivers/irqchip/qcom-pdc.c