fix(esp_hw_support): fix analog i2c master race cause by phy retention link

This commit is contained in:
Li Shuai
2026-03-20 15:09:19 +08:00
committed by BOT
parent cdcb4cbce8
commit 1f524131b0
5 changed files with 121 additions and 3 deletions
+2
View File
@@ -173,7 +173,9 @@ __attribute__((unused)) void sleep_modem_wifi_modem_state_deinit(void)
void IRAM_ATTR sleep_modem_wifi_do_phy_retention(bool restore)
{
sleep_modem_state_phy_link_config(s_sleep_modem.wifi.phy_link, 1);
sleep_retention_do_phy_retention(!restore);
sleep_modem_state_phy_link_config(s_sleep_modem.wifi.phy_link, 0);
if (!restore) {
s_sleep_modem.wifi.modem_state_phy_done = 1;
}