Browse Source

qcacld-3.0: Remove PSOC sync protection for runtime PM resume

Unlike runtime PM suspend, resume may need happen synchronously
during driver shutdown or idle shutdown, hence remove PSOC sync
protection for runtime PM resume.

Change-Id: I4112215d3415dbe6da225d8feb2af7207d88753a
CRs-fixed: 2451994
Yue Ma 6 years ago
parent
commit
80fb30c778
1 changed files with 5 additions and 12 deletions
  1. 5 12
      core/hdd/src/wlan_hdd_driver_ops.c

+ 5 - 12
core/hdd/src/wlan_hdd_driver_ops.c

@@ -1698,18 +1698,11 @@ static int wlan_hdd_pld_runtime_suspend(struct device *dev,
 static int wlan_hdd_pld_runtime_resume(struct device *dev,
 				       enum pld_bus_type bus_type)
 {
-	struct osif_psoc_sync *psoc_sync;
-	int errno;
-
-	errno = osif_psoc_sync_op_start(dev, &psoc_sync);
-	if (errno)
-		return errno;
-
-	errno = wlan_hdd_runtime_resume(dev);
-
-	osif_psoc_sync_op_stop(psoc_sync);
-
-	return errno;
+	/* As opposite to suspend, Runtime PM resume can happen
+	 * synchronously during driver shutdown or idle shutown,
+	 * so remove PSOC sync protection here.
+	 */
+	return wlan_hdd_runtime_resume(dev);
 }
 #endif