From 35ebcefc9bc8665fecae7eef85a7de798aca612b Mon Sep 17 00:00:00 2001 From: hebinglin Date: Thu, 4 Jun 2026 22:26:56 +0800 Subject: [PATCH] fix(esp_hw_support): fix retention hang when no module in link --- components/esp_hw_support/sleep_retention.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/esp_hw_support/sleep_retention.c b/components/esp_hw_support/sleep_retention.c index 557c69a2a98..54bad4f9901 100644 --- a/components/esp_hw_support/sleep_retention.c +++ b/components/esp_hw_support/sleep_retention.c @@ -765,6 +765,10 @@ static void retention_entries_join(void) #endif #if SOC_LIGHT_SLEEP_SUPPORTED && SOC_DEEP_SLEEP_SUPPORTED ESP_ERROR_CHECK(esp_deep_sleep_register_hook(&pmu_sleep_disable_regdma_backup)); +#endif + } else { +#if SOC_LIGHT_SLEEP_SUPPORTED + pmu_sleep_disable_regdma_backup(); #endif } _lock_release_recursive(&s_retention.lock);