qcacmn: disable EXT grp irqs and drain TXRX during suspend

Any update to the SRNG TP/HP when the device is in low power
state would result in system errors. It is recommended to disable
EXT grp irqs and drain TXRX before sending power save enter command
to the FW. This will ensure that no interrupts are received while
in power save mode and as a result there wont be any HP/TP updates.

Change-Id: Ibf952bbc2c6d13fb3e4ca6b4845bc9cc887fa694
CRs-Fixed: 2883135
This commit is contained in:
Manikanta Pubbisetty
2021-03-01 13:09:21 +05:30
کامیت شده توسط AnjaneeDevi Kapparapu
والد c4377e8d3d
کامیت 14d38b77fb
11فایلهای تغییر یافته به همراه217 افزوده شده و 5 حذف شده

مشاهده پرونده

@@ -2632,4 +2632,24 @@ cdp_wds_ext_set_peer_rx(ol_txrx_soc_handle soc, uint8_t vdev_id,
(soc, vdev_id, mac, rx, osif_peer);
}
#endif /* QCA_SUPPORT_WDS_EXTENDED */
/**
* cdp_drain_txrx() - drain TX/RX SRNGs
* @soc: opaque soc handle
*/
static inline void
cdp_drain_txrx(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_drain)
return;
return soc->ops->cmn_drv_ops->txrx_drain(soc);
}
#endif /* _CDP_TXRX_CMN_H_ */