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:

committed by
Sandeep Puligilla

parent
b4ce09a734
commit
b7e3c980e5
@@ -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)
|
||||
{
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user