|
@@ -1036,6 +1036,8 @@ QDF_STATUS pmo_core_psoc_bus_runtime_suspend(struct wlan_objmgr_psoc *psoc,
|
|
|
if (status != QDF_STATUS_SUCCESS)
|
|
|
goto resume_htc;
|
|
|
|
|
|
+ hif_pm_set_link_state(hif_ctx, HIF_PM_LINK_STATE_DOWN);
|
|
|
+
|
|
|
status = pmo_core_psoc_bus_suspend_req(psoc, QDF_RUNTIME_SUSPEND,
|
|
|
&wow_params);
|
|
|
if (status != QDF_STATUS_SUCCESS)
|
|
@@ -1054,7 +1056,6 @@ QDF_STATUS pmo_core_psoc_bus_runtime_suspend(struct wlan_objmgr_psoc *psoc,
|
|
|
goto resume_hif;
|
|
|
}
|
|
|
|
|
|
- hif_pm_set_link_state(hif_ctx, HIF_PM_LINK_STATE_DOWN);
|
|
|
if (pld_cb) {
|
|
|
begin = qdf_get_log_timestamp_usecs();
|
|
|
ret = pld_cb();
|
|
@@ -1178,7 +1179,6 @@ QDF_STATUS pmo_core_psoc_bus_runtime_resume(struct wlan_objmgr_psoc *psoc,
|
|
|
goto fail;
|
|
|
}
|
|
|
}
|
|
|
- hif_pm_set_link_state(hif_ctx, HIF_PM_LINK_STATE_UP);
|
|
|
|
|
|
if (hif_runtime_resume(hif_ctx)) {
|
|
|
status = QDF_STATUS_E_FAILURE;
|
|
@@ -1189,6 +1189,8 @@ QDF_STATUS pmo_core_psoc_bus_runtime_resume(struct wlan_objmgr_psoc *psoc,
|
|
|
if (status != QDF_STATUS_SUCCESS)
|
|
|
goto fail;
|
|
|
|
|
|
+ hif_pm_set_link_state(hif_ctx, HIF_PM_LINK_STATE_UP);
|
|
|
+
|
|
|
status = pmo_core_psoc_configure_resume(psoc, true);
|
|
|
if (status != QDF_STATUS_SUCCESS)
|
|
|
goto fail;
|