Merge branch 'fix/esp32h2_phy_sleep_wakeup_issue' into 'master'

fix(esp_phy): fix esp32h2 sleep wakeup issue

See merge request espressif/esp-idf!28298
This commit is contained in:
Jiang Jiang Jian 2024-01-10 11:44:31 +08:00
commit 8d85c08c40
2 changed files with 7 additions and 9 deletions

View File

@ -864,6 +864,12 @@ static esp_err_t IRAM_ATTR esp_sleep_start(uint32_t pd_flags, esp_sleep_mode_t m
resume_cache();
}
#if CONFIG_ESP_SLEEP_SYSTIMER_STALL_WORKAROUND
if (!(pd_flags & RTC_SLEEP_PD_XTAL)) {
rtc_sleep_systimer_enable(true);
}
#endif
}
#if CONFIG_ESP_SLEEP_CACHE_SAFE_ASSERTION
if (pd_flags & RTC_SLEEP_PD_VDDSDIO) {
/* Cache Suspend 2: If previous sleep powerdowned the flash, suspend cache here so that the
@ -871,14 +877,6 @@ static esp_err_t IRAM_ATTR esp_sleep_start(uint32_t pd_flags, esp_sleep_mode_t m
suspend_cache();
}
#endif
#if CONFIG_ESP_SLEEP_SYSTIMER_STALL_WORKAROUND
if (!(pd_flags & RTC_SLEEP_PD_XTAL)) {
rtc_sleep_systimer_enable(true);
}
#endif
}
// Restore CPU frequency
#if SOC_PM_SUPPORT_PMU_MODEM_STATE
if (pmu_sleep_pll_already_enabled()) {

@ -1 +1 @@
Subproject commit 98617ae683c7456706c7de6e27b7f0355c77dc9b
Subproject commit b5d8d9b52c547d789d82108a463c647671744af5