power: qpnp-linear-charger: fix mutex lockup
There is a deadlock condition between BMS reporting charging
status and charger driver perform SOC based resume of charging.
Fix the above deadlock by removing SOC based resume of charging
logic from charger driver. SOC based resume of charging is now
completely controlled by BMS driver and this can be enabled by
specifying 'qcom,resume-soc = <>' property in the BMS device node.
While at it:
- remove all the references of 'qcom,resume-soc' from the charger
device node and add the same in the BMS device node.
- remove all the reference of 'qcom,bms-controlled-charging' from
the charger device node as by default BMS will update the charging
status via power-supply framework.
CRs-Fixed: 809700
Change-Id: Iff96fd27fceb167cc703270aff110f39b66ce78f
Signed-off-by:
Ashay Jaiswal <ashayj@codeaurora.org>
Loading
Please register or sign in to comment