qcacld-3.0: Move DP suspend/resume code to DP component
Currently OSIF calls the CDP API for DP suspend/resume handler directly. Move these calls to DP component so that DP component can handle the suspend/resume related operations for internal DP sub-modules (which are outside CDP). Change-Id: I080809904f619260c707cacbcdbf158250320081 CRs-Fixed: 3502507
此提交包含在:
@@ -169,6 +169,42 @@ void dp_wait_complete_tasks(struct wlan_dp_psoc_context *dp_ctx);
|
||||
#define dp_enter() QDF_TRACE_ENTER(QDF_MODULE_ID_DP, "enter")
|
||||
#define dp_exit() QDF_TRACE_EXIT(QDF_MODULE_ID_DP, "exit")
|
||||
|
||||
/**
|
||||
* __wlan_dp_runtime_suspend() - Runtime suspend DP handler
|
||||
* @soc: CDP SoC handle
|
||||
* @pdev_id: DP PDEV ID
|
||||
*
|
||||
* Return: QDF_STATUS
|
||||
*/
|
||||
QDF_STATUS __wlan_dp_runtime_suspend(ol_txrx_soc_handle soc, uint8_t pdev_id);
|
||||
|
||||
/**
|
||||
* __wlan_dp_runtime_resume() - Runtime suspend DP handler
|
||||
* @soc: CDP SoC handle
|
||||
* @pdev_id: DP PDEV ID
|
||||
*
|
||||
* Return: QDF_STATUS
|
||||
*/
|
||||
QDF_STATUS __wlan_dp_runtime_resume(ol_txrx_soc_handle soc, uint8_t pdev_id);
|
||||
|
||||
/**
|
||||
* __wlan_dp_bus_suspend() - BUS suspend DP handler
|
||||
* @soc: CDP SoC handle
|
||||
* @pdev_id: DP PDEV ID
|
||||
*
|
||||
* Return: QDF_STATUS
|
||||
*/
|
||||
QDF_STATUS __wlan_dp_bus_suspend(ol_txrx_soc_handle soc, uint8_t pdev_id);
|
||||
|
||||
/**
|
||||
* __wlan_dp_bus_resume() - BUS resume DP handler
|
||||
* @soc: CDP SoC handle
|
||||
* @pdev_id: DP PDEV ID
|
||||
*
|
||||
* Return: QDF_STATUS
|
||||
*/
|
||||
QDF_STATUS __wlan_dp_bus_resume(ol_txrx_soc_handle soc, uint8_t pdev_id);
|
||||
|
||||
/**
|
||||
* wlan_dp_txrx_soc_attach() - Datapath soc attach
|
||||
* @params: SoC attach params
|
||||
|
@@ -37,6 +37,7 @@
|
||||
#include <hif.h>
|
||||
#include <htc_api.h>
|
||||
#include <cdp_txrx_cmn_reg.h>
|
||||
#include <cdp_txrx_bus.h>
|
||||
#ifdef FEATURE_DIRECT_LINK
|
||||
#include "dp_internal.h"
|
||||
#include "cdp_txrx_ctrl.h"
|
||||
@@ -1555,6 +1556,26 @@ bool dp_is_data_stall_event_enabled(uint32_t evt)
|
||||
return false;
|
||||
}
|
||||
|
||||
QDF_STATUS __wlan_dp_runtime_suspend(ol_txrx_soc_handle soc, uint8_t pdev_id)
|
||||
{
|
||||
return cdp_runtime_suspend(soc, pdev_id);
|
||||
}
|
||||
|
||||
QDF_STATUS __wlan_dp_runtime_resume(ol_txrx_soc_handle soc, uint8_t pdev_id)
|
||||
{
|
||||
return cdp_runtime_resume(soc, pdev_id);
|
||||
}
|
||||
|
||||
QDF_STATUS __wlan_dp_bus_suspend(ol_txrx_soc_handle soc, uint8_t pdev_id)
|
||||
{
|
||||
return cdp_bus_suspend(soc, pdev_id);
|
||||
}
|
||||
|
||||
QDF_STATUS __wlan_dp_bus_resume(ol_txrx_soc_handle soc, uint8_t pdev_id)
|
||||
{
|
||||
return cdp_bus_resume(soc, pdev_id);
|
||||
}
|
||||
|
||||
void *wlan_dp_txrx_soc_attach(struct dp_txrx_soc_attach_params *params,
|
||||
bool *is_wifi3_0_target)
|
||||
{
|
||||
|
@@ -28,4 +28,22 @@
|
||||
* Return: None
|
||||
*/
|
||||
void wlan_dp_update_peer_map_unmap_version(uint8_t *version);
|
||||
|
||||
/**
|
||||
* wlan_dp_runtime_suspend() - Runtime suspend DP handler
|
||||
* @soc: CDP SoC handle
|
||||
* @pdev_id: DP PDEV ID
|
||||
*
|
||||
* Return: QDF_STATUS
|
||||
*/
|
||||
QDF_STATUS wlan_dp_runtime_suspend(ol_txrx_soc_handle soc, uint8_t pdev_id);
|
||||
|
||||
/**
|
||||
* wlan_dp_runtime_resume() - Runtime suspend DP handler
|
||||
* @soc: CDP SoC handle
|
||||
* @pdev_id: DP PDEV ID
|
||||
*
|
||||
* Return: QDF_STATUS
|
||||
*/
|
||||
QDF_STATUS wlan_dp_runtime_resume(ol_txrx_soc_handle soc, uint8_t pdev_id);
|
||||
#endif
|
||||
|
@@ -1435,6 +1435,24 @@ QDF_STATUS ucfg_dp_config_direct_link(struct wlan_objmgr_vdev *vdev,
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* ucfg_dp_bus_suspend() - BUS suspend DP handler
|
||||
* @soc: CDP SoC handle
|
||||
* @pdev_id: DP PDEV ID
|
||||
*
|
||||
* Return: QDF_STATUS
|
||||
*/
|
||||
QDF_STATUS ucfg_dp_bus_suspend(ol_txrx_soc_handle soc, uint8_t pdev_id);
|
||||
|
||||
/**
|
||||
* ucfg_dp_bus_resume() - BUS resume DP handler
|
||||
* @soc: CDP SoC handle
|
||||
* @pdev_id: DP PDEV ID
|
||||
*
|
||||
* Return: QDF_STATUS
|
||||
*/
|
||||
QDF_STATUS ucfg_dp_bus_resume(ol_txrx_soc_handle soc, uint8_t pdev_id);
|
||||
|
||||
/**
|
||||
* ucfg_dp_txrx_soc_attach() - Datapath soc attach
|
||||
* @params: SoC attach params
|
||||
|
@@ -25,3 +25,13 @@ void wlan_dp_update_peer_map_unmap_version(uint8_t *version)
|
||||
{
|
||||
__wlan_dp_update_peer_map_unmap_version(version);
|
||||
}
|
||||
|
||||
QDF_STATUS wlan_dp_runtime_suspend(ol_txrx_soc_handle soc, uint8_t pdev_id)
|
||||
{
|
||||
return __wlan_dp_runtime_suspend(soc, pdev_id);
|
||||
}
|
||||
|
||||
QDF_STATUS wlan_dp_runtime_resume(ol_txrx_soc_handle soc, uint8_t pdev_id)
|
||||
{
|
||||
return __wlan_dp_runtime_resume(soc, pdev_id);
|
||||
}
|
||||
|
@@ -2395,6 +2395,16 @@ QDF_STATUS ucfg_dp_config_direct_link(struct wlan_objmgr_vdev *vdev,
|
||||
}
|
||||
#endif
|
||||
|
||||
QDF_STATUS ucfg_dp_bus_suspend(ol_txrx_soc_handle soc, uint8_t pdev_id)
|
||||
{
|
||||
return __wlan_dp_bus_suspend(soc, pdev_id);
|
||||
}
|
||||
|
||||
QDF_STATUS ucfg_dp_bus_resume(ol_txrx_soc_handle soc, uint8_t pdev_id)
|
||||
{
|
||||
return __wlan_dp_bus_resume(soc, pdev_id);
|
||||
}
|
||||
|
||||
void *ucfg_dp_txrx_soc_attach(struct dp_txrx_soc_attach_params *params,
|
||||
bool *is_wifi3_0_target)
|
||||
{
|
||||
|
新增問題並參考
封鎖使用者