summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/soc/intel/alderlake/romstage/romstage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/intel/alderlake/romstage/romstage.c b/src/soc/intel/alderlake/romstage/romstage.c
index 2f50cd29dd..3acd2fd7c3 100644
--- a/src/soc/intel/alderlake/romstage/romstage.c
+++ b/src/soc/intel/alderlake/romstage/romstage.c
@@ -188,9 +188,9 @@ void mainboard_romstage_entry(void)
/* Program to Disable UFS Controllers */
if (!is_devfn_enabled(PCH_DEVFN_UFS) &&
(CONFIG(USE_UNIFIED_AP_FIRMWARE_FOR_UFS_AND_NON_UFS))) {
- printk(BIOS_INFO, "Disabling UFS controllers\n");
- disable_ufs();
if (ps->prev_sleep_state == ACPI_S5 && !mainboard_expects_another_reset()) {
+ printk(BIOS_INFO, "Disabling UFS controllers\n");
+ disable_ufs();
printk(BIOS_INFO, "Warm Reset after disabling UFS controllers\n");
system_reset();
}