qcacmn: FISA suspend/resume code movement
Move the suspend/resume related handling for FISA out of cmn DP. Change-Id: I96aad736023a5d749b892a64b84827aab11ccdca CRs-Fixed: 3512035
This commit is contained in:

committed by
Rahul Choudhary

parent
60e91fe20b
commit
7bec9986f0
@@ -4135,17 +4135,6 @@ void dp_print_fisa_stats(struct dp_soc *soc);
|
||||
*/
|
||||
void dp_rx_fst_update_cmem_params(struct dp_soc *soc, uint16_t num_entries,
|
||||
uint32_t cmem_ba_lo, uint32_t cmem_ba_hi);
|
||||
|
||||
void
|
||||
dp_rx_fst_update_pm_suspend_status(struct dp_soc *soc, bool suspended);
|
||||
|
||||
/**
|
||||
* dp_rx_fst_requeue_wq() - Re-queue pending work queue tasks
|
||||
* @soc: DP SoC context
|
||||
*
|
||||
* Return: None
|
||||
*/
|
||||
void dp_rx_fst_requeue_wq(struct dp_soc *soc);
|
||||
#else
|
||||
static inline void
|
||||
dp_rx_fst_update_cmem_params(struct dp_soc *soc, uint16_t num_entries,
|
||||
@@ -4153,19 +4142,18 @@ dp_rx_fst_update_cmem_params(struct dp_soc *soc, uint16_t num_entries,
|
||||
{
|
||||
}
|
||||
|
||||
static inline void
|
||||
dp_rx_fst_update_pm_suspend_status(struct dp_soc *soc, bool suspended)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void
|
||||
dp_rx_fst_requeue_wq(struct dp_soc *soc)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void dp_print_fisa_stats(struct dp_soc *soc)
|
||||
{
|
||||
}
|
||||
|
||||
static QDF_STATUS dp_rx_dump_fisa_stats(struct dp_soc *soc)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static void dp_rx_dump_fisa_table(struct dp_soc *soc)
|
||||
{
|
||||
}
|
||||
#endif /* WLAN_SUPPORT_RX_FISA */
|
||||
|
||||
#ifdef MAX_ALLOC_PAGE_SIZE
|
||||
|
@@ -3334,32 +3334,13 @@ dp_rx_target_fst_config(struct dp_soc *soc)
|
||||
}
|
||||
return status;
|
||||
}
|
||||
#else /* !WLAN_SUPPORT_RX_FISA */
|
||||
#else
|
||||
static inline QDF_STATUS dp_rx_target_fst_config(struct dp_soc *soc)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef WLAN_SUPPORT_RX_FISA
|
||||
static QDF_STATUS dp_rx_dump_fisa_stats(struct dp_soc *soc)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static void dp_rx_dump_fisa_table(struct dp_soc *soc)
|
||||
{
|
||||
}
|
||||
|
||||
static void dp_suspend_fse_cache_flush(struct dp_soc *soc)
|
||||
{
|
||||
}
|
||||
|
||||
static void dp_resume_fse_cache_flush(struct dp_soc *soc)
|
||||
{
|
||||
}
|
||||
#endif /* !WLAN_SUPPORT_RX_FISA */
|
||||
|
||||
#ifndef WLAN_DP_FEATURE_SW_LATENCY_MGR
|
||||
static inline QDF_STATUS dp_print_swlm_stats(struct dp_soc *soc)
|
||||
{
|
||||
@@ -11536,8 +11517,6 @@ static QDF_STATUS dp_runtime_suspend(struct cdp_soc_t *soc_hdl, uint8_t pdev_id)
|
||||
if (soc->intr_mode == DP_INTR_POLL)
|
||||
qdf_timer_stop(&soc->int_timer);
|
||||
|
||||
dp_rx_fst_update_pm_suspend_status(soc, true);
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
@@ -11573,8 +11552,6 @@ static QDF_STATUS dp_runtime_resume(struct cdp_soc_t *soc_hdl, uint8_t pdev_id)
|
||||
soc->arch_ops.dp_update_ring_hptp(soc, false);
|
||||
qdf_atomic_set(&soc->tx_pending_rtpm, 0);
|
||||
|
||||
dp_rx_fst_update_pm_suspend_status(soc, false);
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
#endif /* FEATURE_RUNTIME_PM */
|
||||
@@ -12064,9 +12041,6 @@ static QDF_STATUS dp_bus_suspend(struct cdp_soc_t *soc_hdl, uint8_t pdev_id)
|
||||
/* Stop monitor reap timer and reap any pending frames in ring */
|
||||
dp_monitor_reap_timer_suspend(soc);
|
||||
|
||||
dp_suspend_fse_cache_flush(soc);
|
||||
dp_rx_fst_update_pm_suspend_status(soc, true);
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
@@ -12086,14 +12060,8 @@ static QDF_STATUS dp_bus_resume(struct cdp_soc_t *soc_hdl, uint8_t pdev_id)
|
||||
/* Start monitor reap timer */
|
||||
dp_monitor_reap_timer_start(soc, CDP_MON_REAP_SOURCE_ANY);
|
||||
|
||||
dp_resume_fse_cache_flush(soc);
|
||||
|
||||
soc->arch_ops.dp_update_ring_hptp(soc, false);
|
||||
|
||||
dp_rx_fst_update_pm_suspend_status(soc, false);
|
||||
|
||||
dp_rx_fst_requeue_wq(soc);
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user