beadrix: board_set_active_charge_port cleanup
Skip unnecessarily port disabling to avoid PD timer expiration due to
TCPC re-init
TEST=emerge-dedede chromeos-ec, charging test with two beadrix setup
BRANCH=none
@@ -431,6 +431,7 @@ int board_set_active_charge_port(int port)
* Turn off the other ports' sink path FETs, before enabling the
* requested charge port.
*/
+ if (old_port != CHARGE_PORT_NONE && old_port != port) {
for (i = 0; i < board_get_usb_pd_port_count(); i++) {
if (i == port)
continue;
@@ -445,8 +446,8 @@ 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)
charger_discharge_on_ac(1);
+ }
/* Enable requested charge port. */
if (raa489000_enable_asgate(port, true) ||
