summaryrefslogtreecommitdiff
path: root/board/eve
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@google.com>2017-01-23 13:30:41 -0800
committerchrome-bot <chrome-bot@chromium.org>2017-01-26 00:09:10 -0800
commitc7a7f1542e13b8be6d800ef84a14478e3724cd05 (patch)
tree7c506769f5273ea40b5317a61993048ff42e4a68 /board/eve
parent7a4eac1bed523e0f37597efcf1b887d996a037f0 (diff)
downloadchrome-ec-c7a7f1542e13b8be6d800ef84a14478e3724cd05.tar.gz
Revert "eve: Discharge on AC until charger is detected"
This reverts commit 66828807afb81d6687fac6319a2d8340e82cef3d. I messed up this port, and only got half of the commit. Even with the other half it still seems to break charging completely and needs more investigation. Remove it all for now. BUG=chrome-os-partner:58666 BRANCH=none TEST=ensure Eve P1 charges properly when charger attached after boot Change-Id: I0219c397ae420738d85d8b437cf89c067f014c5e Signed-off-by: Duncan Laurie <dlaurie@google.com> Reviewed-on: https://chromium-review.googlesource.com/431005 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Diffstat (limited to 'board/eve')
-rw-r--r--board/eve/board.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/board/eve/board.c b/board/eve/board.c
index b076822102..a130b0f1fb 100644
--- a/board/eve/board.c
+++ b/board/eve/board.c
@@ -458,14 +458,6 @@ int board_set_active_charge_port(int charge_port)
case CHARGE_PORT_NONE:
bd9995x_port_select = 0;
bd9995x_port = BD9995X_CHARGE_PORT_BOTH;
-
- /*
- * To avoid inrush current from external charger, enable
- * discharge on AC till the new charger is detected and
- * charge detect delay has passed.
- */
- if (charge_get_percent() > 2)
- charger_discharge_on_ac(1);
break;
default:
panic("Invalid charge port\n");