summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTerry Chen <terry.chen@synaptics.corp-partner.google.com>2023-08-31 10:47:23 +0800
committerNorman Liu <normanwhl@google.com>2023-09-06 04:57:43 +0000
commit6c9f97e6cb4c6119942f97e53fc4389ab721caee (patch)
tree60b5e973a27a940ee47d0ec47b84f3c1b6617395
parent75996340df2de7eaf783f02c21932f6d02d15cce (diff)
downloaddhd43752p-6c9f97e6cb4c6119942f97e53fc4389ab721caee.tar.gz
DHD: Fix KP when CTS NAN AWARE test
In NAN ware test, PCIE runtime suspend has a chance to enter suspend state (0x200) during _wl_cfg80211_del_if. When PCIE enters suspend state, and if there is any memory access, an unexpected error will happen. We should make sure PCIE resume when delete interface procedure. Bug: 288847562 Test: Build pass, C6T6Pro verified. Change-Id: I0958d7908ec63a5f46f97031830025fb4b60b28d Signed-off-by: Terry Chen <terry.chen@synaptics.corp-partner.google.com>
-rw-r--r--dhd_linux.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dhd_linux.c b/dhd_linux.c
index 17aa881..fb7b82a 100644
--- a/dhd_linux.c
+++ b/dhd_linux.c
@@ -30108,6 +30108,10 @@ dhd_net_del_flowrings_sta(dhd_pub_t *dhd, struct net_device *ndev)
__FUNCTION__, ifp->idx));
dhd_del_all_sta(dhd, ifp->idx);
+#ifdef DHD_PCIE_RUNTIMEPM
+ DHD_ERROR(("dhd_bus_busy_state = 0x%x\n", dhd->dhd_bus_busy_state));
+ dhdpcie_runtime_bus_wake(dhd, CAN_SLEEP(), __builtin_return_address(0));
+#endif /* DHD_PCIE_RUNTIMEPM */
dhd_flow_rings_delete(dhd, ifp->idx);
}
#endif /* PCIE_FULL_DONGLE */