qcacmn: Fix regression from DP init-deinit path changes

MCL DP initialization path is running into issues due to change
I5732453f617bdc16995fda916b645c41845c3ecb. Fix the same.

Move flow control lock variables to re-use region. This is needed since
flow control deinit happens in dp_soc_detach, while in dp_soc_deinit, the
soc memory is being partially reset.

De-init HTT memory in dp_soc_deinit and free HTT handle
in dp_soc_detach. The existing code was not freeing HTT
packets for MCL case and freeing the HTT handle twice.

CRs-Fixed: 2359409
Change-Id: I52dcccc0444d4ce139a29ffcb884598bbacda88f
This commit is contained in:
Mohit Khanna
2018-11-30 14:10:55 -08:00
committed by nshrivas
parent 7c265d301e
commit 40f76b57f8
4 changed files with 41 additions and 29 deletions

View File

@@ -3658,7 +3658,7 @@ static void dp_soc_deinit(void *txrx_soc)
qdf_spinlock_destroy(&soc->peer_ref_mutex);
qdf_spinlock_destroy(&soc->htt_stats.lock);
htt_soc_detach(soc->htt_handle);
htt_soc_htc_dealloc(soc->htt_handle);
qdf_spinlock_destroy(&soc->rx.defrag.defrag_lock);
@@ -3758,8 +3758,8 @@ static void dp_soc_detach(void *txrx_soc)
dp_srng_cleanup(soc, &soc->reo_status_ring, REO_STATUS, 0);
dp_hw_link_desc_pool_cleanup(soc);
soc->dp_soc_reinit = 0;
htt_soc_detach(soc->htt_handle);
soc->dp_soc_reinit = 0;
wlan_cfg_soc_detach(soc->wlan_cfg_ctx);