Skip to content

Commit 8567dce

Browse files
committed
always reset on reboot
Signed-off-by: Kieran Levin <ktl@frame.work>
1 parent fe4c4d0 commit 8567dce

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

zephyr/program/lotus/src/cypress_pd_common.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,15 +1262,14 @@ static void port_to_safe_mode(int port)
12621262
CPRINTS("P%d: Safe", port);
12631263

12641264
}
1265-
bool apu_not_initialized = true;
1265+
12661266
void update_system_power_state(int controller)
12671267
{
12681268
enum power_state ps = power_get_state();
12691269
switch (ps) {
12701270
case POWER_G3:
12711271
case POWER_S5G3:
12721272
cypd_set_power_state(CCG_POWERSTATE_G3, controller);
1273-
apu_not_initialized = true;
12741273
break;
12751274
case POWER_S5:
12761275
case POWER_S3S5:
@@ -1308,12 +1307,7 @@ void cypd_set_power_active(void)
13081307

13091308
void cypd_port_reset(void)
13101309
{
1311-
if (apu_not_initialized) {
1312-
CPRINTS("PD_PLT_RESET");
1313-
1314-
apu_not_initialized = false;
13151310
task_set_event(TASK_ID_CYPD, CCG_EVT_PLT_RESET);
1316-
}
13171311
}
13181312

13191313

0 commit comments

Comments
 (0)