diff options
author | Diana Z <dzigterman@chromium.org> | 2020-11-04 14:14:21 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-11-05 00:59:30 +0000 |
commit | a6f4b2eda9f4172a4584758e48ce9410aa19cc3d (patch) | |
tree | 6e29f0dd705071994c8de3eed7c408a0f88ad72c | |
parent | 24b4795317983d2fa194c646a5e34ca6d0f7f209 (diff) | |
download | chrome-ec-a6f4b2eda9f4172a4584758e48ce9410aa19cc3d.tar.gz |
SM5803: Raise allowable charging failures per minute
When drawlat suspends, it reliably triggers an OV_VBAT condition if its
battery is full. To accommodate suspend stress testing, raise the
ceiling of allowable charging failures per minute.
BRANCH=None
BUG=b:172240263
TEST=on drawlat, run 100 suspend stress cycles and observe the unit is
still consuming power from the AC adapter at the end
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I8b3925d254ad69ac6657322403dfe355296ed7c2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2519409
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
-rw-r--r-- | driver/charger/sm5803.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/charger/sm5803.c b/driver/charger/sm5803.c index 40876e5431..161da8d6b5 100644 --- a/driver/charger/sm5803.c +++ b/driver/charger/sm5803.c @@ -61,7 +61,7 @@ struct { /* Port to restart charging on */ static int active_restart_port = CHARGE_PORT_NONE; -#define CHARGING_FAILURE_MAX_COUNT 2 +#define CHARGING_FAILURE_MAX_COUNT 5 #define CHARGING_FAILURE_INTERVAL MINUTE static int sm5803_is_sourcing_otg_power(int chgnum, int port); |