瀏覽代碼

qcacmn: Fix WMI timeout for runtime PM

For runtime PM if the bus is suspended driver need to consider
extra PMO_RESUME_TIMEOUT time for bus resume.

Thus add PMO_RESUME_TIMEOUT extra in WMI timeouts if runtime PM
is supported.

Change-Id: Ifda596626ba39a894bebcb20fcfc2018012b0b54
CRs-fixed: 2513791
Abhishek Singh 5 年之前
父節點
當前提交
22911578a1
共有 1 個文件被更改,包括 15 次插入4 次删除
  1. 15 4
      umac/mlme/vdev_mgr/dispatcher/inc/wlan_vdev_mgr_tgt_if_rx_defs.h

+ 15 - 4
umac/mlme/vdev_mgr/dispatcher/inc/wlan_vdev_mgr_tgt_if_rx_defs.h

@@ -27,6 +27,9 @@
 #define __WLAN_VDEV_MGR_TGT_IF_RX_DEFS_H__
 
 #include <qdf_timer.h>
+#ifdef FEATURE_RUNTIME_PM
+#include <wlan_pmo_common_public_struct.h>
+#endif
 
 /**
  * enum wlan_vdev_mgr_tgt_if_rsp_bit - response status bit
@@ -63,10 +66,18 @@ static inline char *string_from_rsp_bit(enum wlan_vdev_mgr_tgt_if_rsp_bit bit)
 	return (char *)strings[bit];
 }
 
-#define START_RESPONSE_TIMER 6000 /* 6 seconds */
-#define STOP_RESPONSE_TIMER  3000 /* 3 seconds */
-#define DELETE_RESPONSE_TIMER  3000 /* 3 seconds */
-#define PEER_DELETE_ALL_RESPONSE_TIMER 6000 /* 6 seconds */
+#ifdef FEATURE_RUNTIME_PM
+/* Add extra PMO_RESUME_TIMEOUT for runtime PM resume timeout */
+#define START_RESPONSE_TIMER           (6000 + PMO_RESUME_TIMEOUT)
+#define STOP_RESPONSE_TIMER            (4000 + PMO_RESUME_TIMEOUT)
+#define DELETE_RESPONSE_TIMER          (4000 + PMO_RESUME_TIMEOUT)
+#define PEER_DELETE_ALL_RESPONSE_TIMER (6000 + PMO_RESUME_TIMEOUT)
+#else
+#define START_RESPONSE_TIMER           6000
+#define STOP_RESPONSE_TIMER            4000
+#define DELETE_RESPONSE_TIMER          4000
+#define PEER_DELETE_ALL_RESPONSE_TIMER 6000
+#endif
 
 /**
  * struct vdev_response_timer - vdev mgmt response ops timer