mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-08 16:41:55 +00:00
charge_ramp: Reduce max ICL if VBUS drops on stable ramp
Some chargers lose VBUS even when ramp is stable and we re-ramp for
those chargers. It continues in loop. To avoid this issue, reduce
the max input current limit if VBUS drops on stable ramp.
BUG=chrome-os-partner:60544
BRANCH=none
TEST=Tested on Reef. Ramp settles to lower current and multiple
re-ramp is not observed.
Change-Id: I6c9ce4720d01b9e8e3215e8122f798076e516c19
Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/416349
Commit-Ready: Vijay P Hiremath <vijay.p.hiremath@intel.com>
Tested-by: Vijay P Hiremath <vijay.p.hiremath@intel.com>
Tested-by: Rachel Nancollas <rachelsn@google.com>
Reviewed-by: Shawn N <shawnn@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
515249a7d3
commit
81e20f0e58
@@ -305,6 +305,8 @@ void chg_ramp_task(void)
|
||||
if (board_is_ramp_allowed(active_sup) &&
|
||||
board_is_vbus_too_low(CHG_RAMP_VBUS_STABLE)) {
|
||||
CPRINTS("VBUS low; Re-ramp");
|
||||
max_icl = MAX(min_icl,
|
||||
max_icl - RAMP_ICL_BACKOFF);
|
||||
active_icl_new = min_icl;
|
||||
ramp_st_new = CHG_RAMP_RAMP;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user