From 9590a539206ab783c0a453b8d74e3f02ee157e77 Mon Sep 17 00:00:00 2001 From: Alec Berg Date: Tue, 3 Feb 2015 12:24:00 -0800 Subject: samus: enable learn mode when INA is wedged When INA doesn't have power, in order to unwedge it properly, we need to disable charing AND enable learn mode to disable the BQ. Without turning on learn mode, the BQ can backboost and cause ACOK to remain high. BUG=chrome-os-partner:36081 BRANCH=samus TEST=load on a samus and test getting the INA wedged using "charger voltage 7000" and make sure it recovers all the time. Change-Id: Icc4c508f9db1210e2384cb741a33f50afee191e7 Signed-off-by: Alec Berg Reviewed-on: https://chromium-review.googlesource.com/245841 Reviewed-by: Duncan Laurie --- board/samus/extpower.c | 1 + 1 file changed, 1 insertion(+) diff --git a/board/samus/extpower.c b/board/samus/extpower.c index 51cf5454e8..8fb397f0cb 100644 --- a/board/samus/extpower.c +++ b/board/samus/extpower.c @@ -223,6 +223,7 @@ static void check_charge_wedged(void) */ if (prochot_status) { host_command_pd_send_status(PD_CHARGE_NONE); + charger_disable(1); charge_circuit_state = CHARGE_CIRCUIT_WEDGED; CPRINTS("Charge circuit wedged!"); } -- cgit v1.2.1