qcacmn: Avoid multiple pre reset done triggers in Umac reset

Make sure that the pre reset done notification is sent
only once during Umac reset.

Change-Id: I1d9e1d8caef49443d25e879086043e815ea087a1
CRs-Fixed: 3594653
This commit is contained in:
Pavankumar Nandeshwar
2023-09-06 02:26:47 -07:00
committed by Rahul Choudhary
parent 3ceac81c5e
commit d003031f93
4 changed files with 27 additions and 8 deletions

View File

@@ -2766,6 +2766,15 @@ void dp_reo_desc_freelist_destroy(struct dp_soc *soc);
void dp_reset_rx_reo_tid_queue(struct dp_soc *soc, void *hw_qdesc_vaddr,
uint32_t size);
static inline void dp_umac_reset_trigger_pre_reset_notify_cb(struct dp_soc *soc)
{
notify_pre_reset_fw_callback callback = soc->notify_fw_callback;
if (callback)
callback(soc);
}
#if defined(WLAN_FEATURE_11BE_MLO) && defined(WLAN_MLO_MULTI_CHIP)
/**
* dp_umac_reset_complete_umac_recovery() - Complete Umac reset session
@@ -2850,7 +2859,10 @@ QDF_STATUS dp_mlo_umac_reset_stats_print(struct dp_soc *soc)
return QDF_STATUS_SUCCESS;
}
#endif
#else
static inline void dp_umac_reset_trigger_pre_reset_notify_cb(struct dp_soc *soc)
{
}
#endif
#if defined(DP_UMAC_HW_RESET_SUPPORT) && defined(WLAN_FEATURE_11BE_MLO) && defined(WLAN_MLO_MULTI_CHIP)