Browse Source

qcacmn: Add target interface set run time pm in progress

As part of UMAC componentization add target interface set run time
pm in progress during runtime suspend.

Change-Id: Ia5a679f5e5c290f8e4e90fded86586c98073eff3
CRs-Fixed: 2030168
Sravan Kumar Kairam 8 years ago
parent
commit
eeacf8c236

+ 10 - 0
target_if/pmo/inc/target_if_pmo.h

@@ -337,6 +337,16 @@ QDF_STATUS target_if_pmo_psoc_send_wow_enable_req(struct wlan_objmgr_psoc *psoc,
 QDF_STATUS target_if_pmo_psoc_send_suspend_req(struct wlan_objmgr_psoc *psoc,
 		struct pmo_suspend_params *param);
 
+/**
+ * target_if_pmo_set_runtime_pm_in_progress() - set runtime pm status
+ * @psoc: objmgr psoc
+ * @value: set runtime pm status
+ *
+ * Return: none
+ */
+void target_if_pmo_set_runtime_pm_in_progress(struct wlan_objmgr_psoc *psoc,
+					      bool value);
+
 /**
  * target_if_pmo_get_runtime_pm_in_progress() - fp to get runtime pm status
  * @psoc: objmgr psoc

+ 2 - 0
target_if/pmo/src/target_if_pmo_main.c

@@ -86,6 +86,8 @@ void target_if_pmo_register_tx_ops(struct wlan_lmac_if_tx_ops *tx_ops)
 		target_if_pmo_psoc_send_wow_enable_req;
 	pmo_tx_ops->psoc_send_supend_req =
 		target_if_pmo_psoc_send_suspend_req;
+	pmo_tx_ops->psoc_set_runtime_pm_in_progress =
+		target_if_pmo_set_runtime_pm_in_progress;
 	pmo_tx_ops->psoc_get_runtime_pm_in_progress =
 		target_if_pmo_get_runtime_pm_in_progress;
 	pmo_tx_ops->psoc_send_host_wakeup_ind =

+ 7 - 0
target_if/pmo/src/target_if_pmo_suspend_resume.c

@@ -160,6 +160,13 @@ QDF_STATUS target_if_pmo_psoc_send_suspend_req(
 			TGT_WILDCARD_PDEV_ID);
 }
 
+void target_if_pmo_set_runtime_pm_in_progress(struct wlan_objmgr_psoc *psoc,
+					      bool value)
+{
+	return wmi_set_runtime_pm_inprogress(GET_WMI_HDL_FROM_PSOC(psoc),
+					     value);
+}
+
 bool target_if_pmo_get_runtime_pm_in_progress(
 		struct wlan_objmgr_psoc *psoc)
 {