fix: add mutex protection for software trigger RegDMA start to avoid data races

This commit is contained in:
sibeibei
2025-12-11 20:31:50 +08:00
parent 5c5d78b639
commit 7d013fb36d
5 changed files with 36 additions and 4 deletions
+2 -4
View File
@@ -173,10 +173,8 @@ __attribute__((unused)) void sleep_modem_wifi_modem_state_deinit(void)
void IRAM_ATTR sleep_modem_wifi_do_phy_retention(bool restore)
{
if (restore) {
pau_regdma_trigger_modem_link_restore();
} else {
pau_regdma_trigger_modem_link_backup();
sleep_retention_do_phy_retention(!restore);
if (!restore) {
s_sleep_modem.wifi.modem_state_phy_done = 1;
}
}