qcacmn: Separate pdev detach processing as per pdev attach

Separate out pdev detach processing as ol_txrx_pdev_detach()
and ol_txrx_pdev_pre_detach() corresponding to pdev attach
functions ol_txrx_pdev_attach() and ol_txrx_pdev_post_attach()
respectively.

Change-Id: I7fdbe70ad8262a57b61a742fcfb2779e323172af
CRs-Fixed: 2011937
This commit is contained in:
Himanshu Agarwal
2017-02-23 16:26:33 +05:30
committed by Sandeep Puligilla
parent b4ce09a734
commit b7e3c980e5
2 changed files with 10 additions and 0 deletions

View File

@@ -97,6 +97,14 @@ static inline int cdp_pdev_post_attach(ol_txrx_soc_handle soc,
return 0;
}
static inline void
cdp_pdev_pre_detach(ol_txrx_soc_handle soc, struct cdp_pdev *pdev, int force)
{
if (soc->ops->cmn_drv_ops->txrx_pdev_pre_detach)
return soc->ops->cmn_drv_ops->txrx_pdev_pre_detach(pdev, force);
return;
}
static inline void
cdp_pdev_detach(ol_txrx_soc_handle soc, struct cdp_pdev *pdev, int force)
{

View File

@@ -58,6 +58,8 @@ struct cdp_cmn_ops {
int (*txrx_pdev_post_attach)(struct cdp_pdev *pdev);
void (*txrx_pdev_pre_detach)(struct cdp_pdev *pdev, int force);
void (*txrx_pdev_detach)(struct cdp_pdev *pdev, int force);
void *(*txrx_peer_create)