Merge "qcom-charger: smblib: update ICL votings in parallel charging"
This commit is contained in:
commit
f4b1836237
1 changed files with 5 additions and 2 deletions
|
@ -1677,9 +1677,12 @@ static void smblib_handle_typec_debounce_done(struct smb_charger *chg,
|
|||
vote(chg->pl_disable_votable, TYPEC_SRC_VOTER,
|
||||
!rising || sink_attached, 0);
|
||||
|
||||
/* reset taper_end voter here */
|
||||
if (!rising || sink_attached)
|
||||
if (!rising || sink_attached) {
|
||||
/* icl votes to disable parallel charging */
|
||||
vote(chg->pl_disable_votable, USBIN_ICL_VOTER, true, 0);
|
||||
/* reset taper_end voter here */
|
||||
vote(chg->pl_disable_votable, TAPER_END_VOTER, false, 0);
|
||||
}
|
||||
|
||||
smblib_dbg(chg, PR_INTERRUPT, "IRQ: debounce-done %s; Type-C %s detected\n",
|
||||
rising ? "rising" : "falling",
|
||||
|
|
Loading…
Add table
Reference in a new issue