Skip to content

Commit 9a6c2a5

Browse files
committed
Revert "[fix] ec should not control C_CTRL when no battery"
This reverts commit 5f42826. The CL will cause system can not power on, so revert it. Signed-off-by: elmo_lan <hplan1112@gmail.com>
1 parent 35d0a5f commit 9a6c2a5

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

board/hx30/cypress5525.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1766,11 +1766,6 @@ int board_set_active_charge_port(int charge_port)
17661766
{
17671767
CPRINTS("start change port = %d, prev_charge_port = %d", charge_port, prev_charge_port);
17681768

1769-
if (board_batt_is_present() != BP_YES) {
1770-
CPRINTS("No batt, no change");
1771-
return EC_ERROR_NOT_POWERED;
1772-
}
1773-
17741769
/* port need change, stop all power and ready to switch. */
17751770
if (prev_charge_port != -1 && prev_charge_port != charge_port) {
17761771
update_soc_power_limit(false, true);

0 commit comments

Comments
 (0)