Skip to content

Commit d278a82

Browse files
committed
Make sure we fire SHUTDOWN_COMPLETE hooks when the AP goes down
This ensures that the hook in common/system.c that triggers an "at-shutdown" reboot from RO to RW fires. Without this, `ectool reboot_ec RW at-shutdown` doesn't work.
1 parent 2cd0c0b commit d278a82

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

board/hx20/power_sequence.c

+4
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,10 @@ enum power_state power_handle_state(enum power_state state)
559559
gpio_set_level(GPIO_SYSON, 0);
560560
hook_notify(HOOK_CHIPSET_SHUTDOWN);
561561
cypd_set_power_active(POWER_S5);
562+
563+
/* Call hooks after we remove power rails */
564+
hook_notify(HOOK_CHIPSET_SHUTDOWN_COMPLETE);
565+
562566
power_s5_up = 0;
563567
return POWER_S5;
564568
break;

0 commit comments

Comments
 (0)