Skip to content
Commit 90c32e99 authored by Lukasz Madej's avatar Lukasz Madej Committed by Fabio Baltieri
Browse files

drivers: charger: charger_max20335: introduce int utilization



Utilization of chip interrupt line is mandatory to assure proper
charger state control. Handle interrupt to prepare the driver for
implementation of such functionality.
Modify charger status update so the current state is fetched in the
interrupt handler.

Use level based interrupts combined with interrupt disabling for a
period of time after interrupt handling to reduce number of interrupts
triggered by the charger. There may be a case where the charger
produces burst of interrupts for a several seconds and if the code
attempts to handle every single interrupt separatery then the system
might be significantly overloaded.

Co-authored-by: default avatarBartosz Bilas <b.bilas@grinn-global.com>
Signed-off-by: default avatarLukasz Madej <l.madej@grinn-global.com>
parent e9eb1d84
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment