fix(ble): fix ble retention dependency order

(cherry picked from commit 54efd4ccfd)

Co-authored-by: cjin <jinchen@espressif.com>
This commit is contained in:
Jin Chen
2026-09-04 18:44:22 +08:00
parent 59512efe9c
commit 97cdc77f5c
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -738,7 +738,7 @@ static esp_err_t sleep_modem_ble_mac_modem_state_init(uint8_t extra)
sleep_retention_module_init_param_t init_param = {
.cbs = { .create = { .handle = sleep_modem_ble_mac_retention_init, .arg = &retention_args } },
.attribute = SLEEP_RETENTION_MODULE_ATTR_ATTACH,
.depends = RETENTION_MODULE_BITMAP_INIT(BT_BB)
.depends = RETENTION_MODULE_BITMAP_INIT(CLOCK_MODEM)
};
esp_err_t err = sleep_retention_module_init(SLEEP_RETENTION_MODULE_BLE_MAC, &init_param);
if (err != ESP_OK) {
+1 -1
View File
@@ -798,7 +798,7 @@ static esp_err_t sleep_modem_ble_mac_modem_state_init(uint8_t extra)
sleep_retention_module_init_param_t init_param = {
.cbs = { .create = { .handle = sleep_modem_ble_mac_retention_init, .arg = &retention_args } },
.attribute = SLEEP_RETENTION_MODULE_ATTR_ATTACH,
.depends = RETENTION_MODULE_BITMAP_INIT(BT_BB)
.depends = RETENTION_MODULE_BITMAP_INIT(CLOCK_MODEM)
};
esp_err_t err = sleep_retention_module_init(SLEEP_RETENTION_MODULE_BLE_MAC, &init_param);
if (err != ESP_OK) {
+1 -1
View File
@@ -793,7 +793,7 @@ static esp_err_t sleep_modem_ble_mac_modem_state_init(uint8_t extra)
sleep_retention_module_init_param_t init_param = {
.cbs = { .create = { .handle = sleep_modem_ble_mac_retention_init, .arg = &retention_args } },
.attribute = SLEEP_RETENTION_MODULE_ATTR_ATTACH,
.depends = RETENTION_MODULE_BITMAP_INIT(BT_BB)
.depends = RETENTION_MODULE_BITMAP_INIT(CLOCK_MODEM)
};
esp_err_t err = sleep_retention_module_init(SLEEP_RETENTION_MODULE_BLE_MAC, &init_param);
if (err != ESP_OK) {
@@ -304,7 +304,7 @@ btdm_lp_modem_state_init(void)
sleep_retention_module_init_param_t init_param = {
.cbs = {.create = {.handle = (void *)btdm_lp_modem_retention_create, .arg = NULL}},
.attribute = SLEEP_RETENTION_MODULE_ATTR_ATTACH,
.depends = RETENTION_MODULE_BITMAP_INIT(BT_BB)
.depends = RETENTION_MODULE_BITMAP_INIT(CLOCK_MODEM)
};
esp_err_t err = sleep_retention_module_init(SLEEP_RETENTION_MODULE_BLE_MAC, &init_param);