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
@@ -276,6 +276,15 @@ void sleep_retention_do_extra_retention(bool backup_or_restore);
void sleep_retention_do_system_retention(bool backup_or_restore);
#endif
#if SOC_PM_SUPPORT_PMU_MODEM_STATE
/**
* @brief Software trigger REGDMA to do phy linked list retention
*
* @param backup_or_restore true for backup register context to memory
* or false for restore to register from memory
*/
void sleep_retention_do_phy_retention(bool backup_or_restore);
#endif /*SOC_PM_SUPPORT_PMU_MODEM_STATE */
#endif // SOC_PAU_SUPPORTED
#ifdef __cplusplus