qcacld-3.0: Trigger recovery on enable irq failure in suspend path
When enable irq failure is encountered trigger recovery with reason code ENABLE_IRQ_FAILURE, this helps to recover the system in error scenario. Change-Id: I003f43fc9e3473cc939729700a03c8a8c790d34f CRs-Fixed: 3724860
This commit is contained in:

committed by
Ravindra Konda

parent
ca687602ac
commit
4a7a9d7b6c
@@ -1047,11 +1047,12 @@ QDF_STATUS pmo_core_txrx_suspend(struct wlan_objmgr_psoc *psoc)
|
|||||||
|
|
||||||
status = cdp_drain_txrx(dp_soc, 0);
|
status = cdp_drain_txrx(dp_soc, 0);
|
||||||
if (QDF_IS_STATUS_ERROR(status)) {
|
if (QDF_IS_STATUS_ERROR(status)) {
|
||||||
pmo_err("Prevent suspend unable to drain txrx");
|
pmo_err("Prevent suspend unable to drain txrx status:%u",
|
||||||
|
status);
|
||||||
ret = hif_enable_grp_irqs(hif_ctx);
|
ret = hif_enable_grp_irqs(hif_ctx);
|
||||||
if (ret && ret != -EOPNOTSUPP) {
|
if (ret && ret != -EOPNOTSUPP) {
|
||||||
pmo_err("Failed to enable grp irqs: %d", ret);
|
pmo_err("Failed to enable grp irqs: %d", ret);
|
||||||
QDF_BUG(0);
|
qdf_trigger_self_recovery(psoc, QDF_ENABLE_IRQ_FAILURE);
|
||||||
}
|
}
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user