From 73ab8272118dc7f544cbc7dfda2ef22aca032988 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Wed, 27 Nov 2019 12:21:14 -0700 Subject: [PATCH] Redo fix for failure to boot in order to allow complete system shut off --- src/board/system76/galp3-c/power.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/board/system76/galp3-c/power.c b/src/board/system76/galp3-c/power.c index 7161726..9002584 100644 --- a/src/board/system76/galp3-c/power.c +++ b/src/board/system76/galp3-c/power.c @@ -137,6 +137,9 @@ void power_on_s5() { // Wait for SUSPWRDNACK validity tPLT01; + + // Extra wait - TODO remove + delay_ms(200); #endif // DEEP_SX } @@ -302,9 +305,7 @@ void power_event(void) { if (ack_new && !ack_last) { DEBUG("%02X: SUSPWRDNACK asserted\n", main_cycle); - if (!pg_new) { - DEBUG("%02X: booting\n", main_cycle); - } else if (gpio_get(&SUSC_N_PCH)) { + if (gpio_get(&SUSC_N_PCH)) { DEBUG("%02X: entering S3 state\n", main_cycle); } else if (state == POWER_STATE_S5) { power_off_s5();