OSDN Git Service

power: smb-lib: update USBIN_V_VOTER usage
authorAshay Jaiswal <ashayj@codeaurora.org>
Tue, 21 Mar 2017 05:45:51 +0000 (11:15 +0530)
committerAshay Jaiswal <ashayj@codeaurora.org>
Wed, 5 Apr 2017 04:31:08 +0000 (10:01 +0530)
commit38939b5e92ae99b3544f24e275746ba27cd8ba98
tree0700b46c9c111370ae75a12d3eb6f0d8bef077c1
parent9af69213de642f19b19f77e04f23de9f66b6b0f0
power: smb-lib: update USBIN_V_VOTER usage

The current code enables parallel charging if a high voltage
charger is seen (QC or PD) or a high current charger is seen.

This means that parallel charger could remain enabled when PD
transitions its voltage even though it has reduced the current
to 500mA. It is desirable to disable parallel charging during
such voltage transition.

So prepare for this change by first ensuring that only a QC
charger votes for USBIN_V_VOTER. The PD charger, even while
operating at higher voltages will need to depend on USBIN_I_VOTER,
just like a simple DCP charger, to enable parallel charger.

CRs-Fixed: 2014572
Change-Id: I03dfcff44b30b06918ebf176043873fb141f485f
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
drivers/power/supply/qcom/smb-lib.c