mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
qcacld-3.0: Set ep vote access states during suspend and resume
Set ep vote states during wlan suspend and resume opeartions Change-Id: I5da5fb69ca99ac1d9ecd82cc61cc106eeba8eb47 CRs-Fixed: 2939902
This commit is contained in:
parent
cb7b7e864f
commit
13833d2d6e
2 changed files with 25 additions and 0 deletions
|
|
@ -1171,6 +1171,12 @@ QDF_STATUS pmo_core_psoc_bus_runtime_suspend(struct wlan_objmgr_psoc *psoc,
|
|||
hif_process_runtime_suspend_success(hif_ctx);
|
||||
}
|
||||
|
||||
if (hif_try_prevent_ep_vote_access(hif_ctx)) {
|
||||
pmo_debug("Prevent suspend, ep work pending");
|
||||
status = QDF_STATUS_E_BUSY;
|
||||
goto resume_txrx;
|
||||
}
|
||||
|
||||
goto dec_psoc_ref;
|
||||
|
||||
resume_txrx:
|
||||
|
|
@ -1330,12 +1336,22 @@ QDF_STATUS pmo_core_psoc_send_host_wakeup_ind_to_fw(
|
|||
struct pmo_psoc_priv_obj *psoc_ctx)
|
||||
{
|
||||
QDF_STATUS status = QDF_STATUS_SUCCESS;
|
||||
void *hif_ctx;
|
||||
|
||||
pmo_enter();
|
||||
|
||||
hif_ctx = pmo_core_psoc_get_hif_handle(psoc);
|
||||
hif_set_ep_vote_access(hif_ctx,
|
||||
HIF_EP_VOTE_NONDP_ACCESS,
|
||||
HIF_EP_VOTE_ACCESS_ENABLE);
|
||||
|
||||
qdf_event_reset(&psoc_ctx->wow.target_resume);
|
||||
|
||||
status = pmo_tgt_psoc_send_host_wakeup_ind(psoc);
|
||||
if (status) {
|
||||
hif_set_ep_vote_access(hif_ctx,
|
||||
HIF_EP_VOTE_NONDP_ACCESS,
|
||||
HIF_EP_VOTE_ACCESS_DISABLE);
|
||||
status = QDF_STATUS_E_FAILURE;
|
||||
goto out;
|
||||
}
|
||||
|
|
@ -1355,6 +1371,9 @@ QDF_STATUS pmo_core_psoc_send_host_wakeup_ind_to_fw(
|
|||
pmo_debug("Host wakeup received");
|
||||
pmo_tgt_update_target_suspend_flag(psoc, false);
|
||||
pmo_tgt_update_target_suspend_acked_flag(psoc, false);
|
||||
hif_set_ep_vote_access(hif_ctx,
|
||||
HIF_EP_VOTE_DP_ACCESS,
|
||||
HIF_EP_VOTE_ACCESS_ENABLE);
|
||||
}
|
||||
out:
|
||||
pmo_exit();
|
||||
|
|
|
|||
|
|
@ -1237,6 +1237,12 @@ static int __wlan_hdd_bus_suspend(struct wow_enable_params wow_params)
|
|||
goto resume_txrx;
|
||||
}
|
||||
|
||||
if (hif_try_prevent_ep_vote_access(hif_ctx)) {
|
||||
hdd_debug("Prevent suspend, ep work pending");
|
||||
err = QDF_STATUS_E_BUSY;
|
||||
goto resume_txrx;
|
||||
}
|
||||
|
||||
/*
|
||||
* Remove bus votes at the very end, after making sure there are no
|
||||
* pending bus transactions from WLAN SOC for TX/RX.
|
||||
|
|
|
|||
Loading…
Reference in a new issue