commit | abbd607a726edde496ba58b778ef56f7e75cb5e5 | [log] [tgz] |
---|---|---|
author | Xiaozhe Shi <xiaozhes@codeaurora.org> | Wed Dec 11 14:24:02 2013 -0800 |
committer | Xiaozhe Shi <xiaozhes@codeaurora.org> | Fri Apr 04 15:14:11 2014 -0700 |
tree | 02c8e383b0f741b8617457f3a8b04f3a6192a927 | |
parent | 2c17117e972e691986eab3b474db9d7e32bd22ff [diff] |
power: qpnp-bms: always release output locks in bms driver If a SPMI read error occurs, there can be a situation where the BMS_HOLD_OREG bit is not set and the bms param lock is never released. This can cause deadlocks and battery SoC to never move. Fix this by releasing the locks after handling an error. Change-Id: I880b8e1ed2ff1ec3ce701f1e9922c9aac353766a Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>