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

Skip to content
Commit 75f8f815 authored by Anirudh Ghayal's avatar Anirudh Ghayal
Browse files

power: qpnp-smb5: Add lock for USBIN VADC reads



The USBIN_V ADC voltage can be read by multiple clients
which could lead to a race while storing/re-storing the
ADC_EN register and end up incorrectly configuring it.
This can lead to the charger ADC channels being completely
disabled and mis-triggering the thermal regulation impacting
ICL.

Fix it by adding a mutex while accessing it.

Change-Id: I6ca2f48dec2ff57e9395bfefc8c843c2e0650442
Signed-off-by: default avatarAnirudh Ghayal <aghayal@codeaurora.org>
parent d69f47b7
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