From 781ecb1a72141f3d65b5de3044756a678071aac7 Mon Sep 17 00:00:00 2001 From: wuzhenghui Date: Fri, 4 Sep 2026 16:10:43 +0800 Subject: [PATCH] fix(esp_hw_support): ungate security clock in retention since ds/ecdsa auto working after PU --- .../esp_hw_support/lowpower/port/esp32h21/sleep_clock_icg.c | 4 ---- .../esp_hw_support/lowpower/port/esp32s31/sleep_clock_icg.c | 3 --- 2 files changed, 7 deletions(-) diff --git a/components/esp_hw_support/lowpower/port/esp32h21/sleep_clock_icg.c b/components/esp_hw_support/lowpower/port/esp32h21/sleep_clock_icg.c index 0131aa1bdc2..1b557f1817c 100644 --- a/components/esp_hw_support/lowpower/port/esp32h21/sleep_clock_icg.c +++ b/components/esp_hw_support/lowpower/port/esp32h21/sleep_clock_icg.c @@ -96,10 +96,6 @@ void sleep_clock_icg_retention_clock_config(sleep_retention_module_bitmap_t *mod } } -#if !CONFIG_SECURE_ENABLE_TEE - clocks_mask &= ~PMU_SLEEP_CLK_ICG_BIT(PMU_ICG_FUNC_ENA_SEC); -#endif - esp_sleep_enter_critical_safe(); s_retention_icg_flags = clocks_mask; esp_sleep_exit_critical_safe(); diff --git a/components/esp_hw_support/lowpower/port/esp32s31/sleep_clock_icg.c b/components/esp_hw_support/lowpower/port/esp32s31/sleep_clock_icg.c index 817309eb715..2cd10be62ef 100644 --- a/components/esp_hw_support/lowpower/port/esp32s31/sleep_clock_icg.c +++ b/components/esp_hw_support/lowpower/port/esp32s31/sleep_clock_icg.c @@ -126,9 +126,6 @@ void sleep_clock_icg_retention_clock_config(sleep_retention_module_bitmap_t *mod #if !CONFIG_SPIRAM clocks_mask &= ~PMU_SLEEP_CLK_ICG_BIT(PMU_ICG_FUNC_ENA_MSPI_PSRAM); #endif -#if !CONFIG_SECURE_ENABLE_TEE - clocks_mask &= ~PMU_SLEEP_CLK_ICG_BIT(PMU_ICG_FUNC_ENA_SEC); -#endif esp_sleep_enter_critical_safe(); s_retention_icg_flags[0] = PMU_SLEEP_CLK_ICG_FUNC_LO(clocks_mask);