qcacmn: handle ppeds init/deinit

based on ppeds_handle allocate and free the
ppeds resources.

Change-Id: I70fc4bfa879fcd62c0e8a80c5b57938a2063bccc
CRs-Fixed: 3462725
Tento commit je obsažen v:
Nitin Shetty
2023-04-10 13:04:06 +05:30
odevzdal Madan Koyyalamudi
rodič c7c3c49381
revize 7045ccc728
8 změnil soubory, kde provedl 46 přidání a 28 odebrání

Zobrazit soubor

@@ -3313,7 +3313,8 @@ static const uint8_t rx_fst_toeplitz_key[WLAN_CFG_RX_FST_TOEPLITZ_KEYLEN] = {
void wlan_cfg_fill_interrupt_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
int num_dp_msi,
int interrupt_mode,
bool is_monitor_mode)
bool is_monitor_mode,
bool ppeds_attached)
{ int i = 0;
for (i = 0; i < WLAN_CFG_INT_NUM_CONTEXTS; i++) {
@@ -3343,7 +3344,8 @@ void wlan_cfg_fill_interrupt_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
void wlan_cfg_fill_interrupt_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
int num_dp_msi,
int interrupt_mode,
bool is_monitor_mode)
bool is_monitor_mode,
bool ppeds_attached)
{ int i = 0;
const uint8_t *tx_ring_intr_mask =
wlan_cfg_get_tx_ring_int_mask(wlan_cfg_ctx);
@@ -3466,7 +3468,8 @@ wlan_cfg_mask_assignment(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
void wlan_cfg_fill_interrupt_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
int num_dp_msi,
int interrupt_mode,
bool is_monitor_mode)
bool is_monitor_mode,
bool ppeds_attached)
{
int i = 0;
int interrupt_index = 0;
@@ -3482,7 +3485,7 @@ void wlan_cfg_fill_interrupt_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
}
for (i = 0; i < WLAN_CFG_INT_NUM_CONTEXTS; i++) {
if (!wlan_cfg_get_dp_soc_is_ppeds_enabled(wlan_cfg_ctx))
if (!ppeds_attached)
mask_assignment = &dp_mask_assignment[interrupt_index];
else if (interrupt_index == 8)
mask_assignment = &dp_ds_mask_assignment_8msi;
@@ -5380,7 +5383,7 @@ int wlan_cfg_ipa_tx_alt_comp_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg)
#ifdef WLAN_SUPPORT_PPEDS
bool
wlan_cfg_get_dp_soc_is_ppeds_enabled(struct wlan_cfg_dp_soc_ctxt *cfg)
wlan_cfg_get_dp_soc_ppeds_enable(struct wlan_cfg_dp_soc_ctxt *cfg)
{
return cfg->ppeds_enable;
}