qcacmn: Add CDP API to check if UMAC reset is in progress

Add CDP API to check if UMAC reset is in progress.

Change-Id: I9b5891f61278aa6be52ee2e8d5f9de3185d92eef
CRs-Fixed: 3475148
This commit is contained in:
Shashikala Prabhu
2023-05-03 15:04:38 +05:30
committed by Madan Koyyalamudi
szülő 8b6fd27e6e
commit 65e8b2f3d8
5 fájl változott, egészen pontosan 67 új sor hozzáadva és 0 régi sor törölve

Fájl megtekintése

@@ -1408,4 +1408,25 @@ QDF_STATUS cdp_txrx_get_pdev_phyrx_error_mask(ol_txrx_soc_handle soc,
}
#endif
/**
* cdp_umac_reset_is_inprogress() - API to check if umac reset is in progress
* @soc: opaque soc handle
*
* Return: true if umac reset is in progress, else false.
*/
static inline bool
cdp_umac_reset_is_inprogress(ol_txrx_soc_handle soc)
{
if (!soc || !soc->ops) {
dp_cdp_debug("Invalid Instance:");
QDF_BUG(0);
return false;
}
if (!soc->ops->ctrl_ops ||
!soc->ops->ctrl_ops->umac_reset_is_inprogress)
return false;
return soc->ops->ctrl_ops->umac_reset_is_inprogress(soc);
}
#endif /* _CDP_TXRX_CTRL_H_ */