Skip to content
Commit 7cf4eff7 authored by Andy Sinclair's avatar Andy Sinclair Committed by Carles Cufí
Browse files

drivers: mfd: npm1300: Fixed race condition in event callback



If an event occurs between the status registers being read and
the event being cleared, the interrupt line will remain active.

As the interrupt is edge triggered,  all future interrupts
will being ignored.  This problem will also occur if an I2C
transation fails in the callback.

The state of the interrupt pin is now checked at the end of the
callback, and a retry is attempted if the interrupt has not
been cleared.

Signed-off-by: default avatarAndy Sinclair <andy.sinclair@nordicsemi.no>
parent 73383485
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment