power: qpnp-smb5: Fix FV configuration when QNOVO is enabled
Currently, for CC mode, user space depends on BATT_PROFILE_VOTER's vote on FV to select a PDO. When Qnovo is enabled, this vote is removed, causing failure in selecting a PDO and exiting CC mode with QC4 charger. Fix this, by making PDO selection independent of BATT_PROFILE_VOTER's vote when qnovo is enabled. Change-Id: I95817d3e54e373eefbab5625699665517f461322 Signed-off-by: Sahil Chandna <chandna@codeaurora.org>
This commit is contained in:
parent
576ac265f8
commit
773814450b
1 changed files with 4 additions and 1 deletions
|
@ -1688,7 +1688,10 @@ static int smb5_batt_get_prop(struct power_supply *psy,
|
|||
break;
|
||||
case POWER_SUPPLY_PROP_VOLTAGE_MAX:
|
||||
val->intval = get_client_vote(chg->fv_votable,
|
||||
BATT_PROFILE_VOTER);
|
||||
QNOVO_VOTER);
|
||||
if (val->intval < 0)
|
||||
val->intval = get_client_vote(chg->fv_votable,
|
||||
BATT_PROFILE_VOTER);
|
||||
break;
|
||||
case POWER_SUPPLY_PROP_VOLTAGE_QNOVO:
|
||||
val->intval = get_client_vote_locked(chg->fv_votable,
|
||||
|
|
Loading…
Reference in a new issue