Revert "eve: Discharge on AC until charger is detected"

This reverts commit 66828807af.

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>
This commit is contained in:
Duncan Laurie
2017-01-23 13:30:41 -08:00
committed by chrome-bot
parent 7a4eac1bed
commit c7a7f1542e

View File

@@ -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");