diff --git a/common/gaia_power.c b/common/gaia_power.c index 856210fff2..b0589a84f9 100644 --- a/common/gaia_power.c +++ b/common/gaia_power.c @@ -546,10 +546,13 @@ static int wait_for_power_on(void) } #ifdef HAS_TASK_CHARGER - if (charge_keep_power_off()) { + /* + * If the system is already on (value == 1), the kernel + * would handle low power condition and we should not + * shutdown the system from EC. + */ + if (value != 1 && charge_keep_power_off()) { CPRINTF("[%T power on ignored due to low battery]\n"); - if (value == 1) /* System already on */ - power_off(); continue; } #endif