The current code uses handle_level_irq flow handler even if the trigger type of the interrupt is edge. This can lead to missing of an edge transition that happens when the interrupt is being handled. The level flow handler masks the interrupt while it is being handled, so if an edge transition happens at that time, that edge is lost. Use an edge flow handler for edge type interrupts which ensures that the interrupt stays enabled while being handled - at least until it triggers at which point the flow handler sets the IRQF_PENDING flag and only then masks the interrupt. That IRQF_PENDING state indicates an edge transition happened while the interrupt was being handled and the handler is called again. CRs-Fixed: 1001770 Change-Id: Id2554c9e6ed79188fa1b64728be464bda45f07ec Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
spmi-pmic-arb.c | ||
spmi.c |