Power: qpnp-linear-charger: Add spin_lock for soc based resume charging
There's a race between get_prop_capacity and qpnp_batt_power_set_property.
Fix this by adding spin_lock to execute the whole chg_done update and
charging enable/disable.
CRs-Fixed: 655107
Change-Id: I91633add3911dbb440011a88966bc833735e4c60
Signed-off-by:
Zhenhua Huang <zhenhuah@codeaurora.org>
Loading
Please register or sign in to comment