diff options
author | Abhijeet Dharmapurikar <adharmap@codeaurora.org> | 2017-05-10 16:25:38 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-06-03 12:05:47 +0200 |
commit | 5f9b2ea3da8cf079e22cbb0fc2ed1b9034f7dd42 (patch) | |
tree | 0a0297fb24a1f5aefa5652fc0057cbacc94ee21a /crypto/cipher.c | |
parent | spmi: pmic-arb: clear the latched status of the interrupt (diff) | |
download | linux-5f9b2ea3da8cf079e22cbb0fc2ed1b9034f7dd42.tar.xz linux-5f9b2ea3da8cf079e22cbb0fc2ed1b9034f7dd42.zip |
spmi: pmic_arb: use appropriate flow handler
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.
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto/cipher.c')
0 files changed, 0 insertions, 0 deletions