From aa4fce03a0532812aecec197c64baf3e3eef9300 Mon Sep 17 00:00:00 2001 From: Yeshwanth Sriram Guntuka Date: Tue, 6 Apr 2021 14:57:06 +0530 Subject: [PATCH] qcacld-3.0: Ignore RTPM suspend on pending IPA tx comps In STA+SAP mode, disable pipes is not done as part of either last client disconnection or SAP down. In the scenario where APPS suspend does not get triggered, IPA pipes are not disabled and on runtime suspend, PCIe link is suspended which would result in a NOC error if IPA HW accesses wlan registers. Fix is to avoid runtime suspend if there are any pending IPA tx completions. Change-Id: I190da658d233cb5d6c85846312ddc7a251f9f9d5 CRs-Fixed: 2918334 --- core/hdd/src/wlan_hdd_driver_ops.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/hdd/src/wlan_hdd_driver_ops.c b/core/hdd/src/wlan_hdd_driver_ops.c index 6b2b7b7e4b44..cb0476c76e2a 100644 --- a/core/hdd/src/wlan_hdd_driver_ops.c +++ b/core/hdd/src/wlan_hdd_driver_ops.c @@ -1597,6 +1597,11 @@ static int wlan_hdd_runtime_suspend(struct device *dev) return -EBUSY; } + if (ucfg_ipa_is_tx_pending(hdd_ctx->pdev)) { + hdd_debug("IPA TX comps pending, ignore rtpm suspend"); + return -EBUSY; + } + status = ucfg_pmo_psoc_bus_runtime_suspend(hdd_ctx->psoc, hdd_pld_runtime_suspend_cb); err = qdf_status_to_os_return(status);