qcacmn: Add a cdp api to stop the ppe ds

Add a cdp api to stop the ppe direct switch
from control path

Change-Id: Id1c5d5c0e2b80d6fa0fa7b907fac133f815f9627
CRs-Fixed: 3356472
This commit is contained in:
Pavankumar Nandeshwar
2022-12-14 04:24:42 -08:00
committed by Madan Koyyalamudi
parent ea0e2133b3
commit 3548804a60
4 changed files with 37 additions and 1 deletions

View File

@@ -1717,6 +1717,25 @@ static inline void cdp_txrx_intr_detach(ol_txrx_soc_handle soc)
soc->ops->cmn_drv_ops->txrx_intr_detach(soc);
}
/**
* cdp_txrx_ppeds_stop(): function to stop ppeds
* @soc: soc handle
*/
static inline void cdp_txrx_ppeds_stop(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_ppeds_stop)
return;
soc->ops->cmn_drv_ops->txrx_ppeds_stop(soc);
}
/**
* cdp_txrx_umac_reset_deinit(): De-initialize UMAC HW reset module
* @soc: soc handle