Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 519ced75 authored by David Collins's avatar David Collins
Browse files

spmi: qpnp-int: add irq_ack() callback and use it inside irq_mask_ack()



Add a function into the qpnp-int driver named qpnpint_irq_ack()
which performs the single step required to acknowledge a PMIC
interrupt: clearing the latched status register bit for the
interrupt.  At the same time modify the qpnpint_irq_mask_ack()
function so that it simply calls qpnpint_irq_mask() and
qpnpint_irq_ack().  This eliminates redundant code present in
both qpnpint_irq_mask() and qpnpint_irq_mask_ack().

An irq_ack() callback is required in order to utilize the
handle_edge_irq flow handler.

Change-Id: Iacb0edf01fe82f358bb6200cef1b905584eb29e5
Signed-off-by: default avatarDavid Collins <collinsd@codeaurora.org>
parent c255ffa1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment