Skip to content
Snippets Groups Projects
Commit 8c7737ed authored by choongryeol.lee's avatar choongryeol.lee Committed by Devin Kim
Browse files

power: qpnp-charger: fix race condition in charger detection


During probe, several interrupt handlers are called directly
for the initial charger detection. Since a interrupt could
happen while those handlers are processed, some variables
could be changed erroneously.
By disabling interrupt before calling those handlers directly,
remove race condition.

Change-Id: Ic010afe0daa16c2fa5aa6bbf309dc9ff60c0edd5
Signed-off-by: default avatarchoongryeol.lee <choongryeol.lee@lge.com>
parent 11e0e989
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment