qcacmn: Add CDP api support for umac reset init

Add CDP api support for umac reset init API, these apis are expected
to be called whenever shmem is deinitialized.

Change-Id: I307c586454580ab8f83b0d515defa93d4e8ff656
CRs-Fixed: 3458268
This commit is contained in:
Surya Prakash Raajen
2023-04-06 18:11:25 +05:30
committed by Madan Koyyalamudi
parent 07390f2011
commit 74c7a8d542
5 changed files with 27 additions and 5 deletions

View File

@@ -1844,6 +1844,25 @@ static inline void cdp_txrx_ppeds_stop(ol_txrx_soc_handle soc)
soc->ops->cmn_drv_ops->txrx_ppeds_stop(soc);
}
/**
* cdp_txrx_umac_reset_init(): De-initialize UMAC HW reset module
* @soc: soc handle
*/
static inline void cdp_txrx_umac_reset_init(ol_txrx_soc_handle soc)
{
if (!soc || !soc->ops) {
dp_cdp_debug("Invalid Instance:");
QDF_BUG(0);
return;
}
if (!soc->ops->cmn_drv_ops ||
!soc->ops->cmn_drv_ops->txrx_umac_reset_init)
return;
soc->ops->cmn_drv_ops->txrx_umac_reset_init(soc);
}
/**
* cdp_txrx_umac_reset_deinit(): De-initialize UMAC HW reset module
* @soc: soc handle