summaryrefslogtreecommitdiff
path: root/board/storo/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/storo/board.c')
-rw-r--r--board/storo/board.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/board/storo/board.c b/board/storo/board.c
index f864d230c2..280a85fd99 100644
--- a/board/storo/board.c
+++ b/board/storo/board.c
@@ -462,10 +462,6 @@ int board_set_active_charge_port(int port)
old_port = charge_manager_get_active_charge_port();
- /* If the port is not changing, we should do nothing */
- if (old_port == port)
- return EC_SUCCESS;
-
CPRINTS("New chg p%d", port);
/* Disable all ports. */
@@ -503,7 +499,7 @@ int board_set_active_charge_port(int port)
* Stop the charger IC from switching while changing ports. Otherwise,
* we can overcurrent the adapter we're switching to. (crbug.com/926056)
*/
- if (old_port != CHARGE_PORT_NONE)
+ if ((old_port != CHARGE_PORT_NONE) && (old_port != port))
charger_discharge_on_ac(1);
/* Enable requested charge port. */