Browse Source

qcacld-3.0: Use qdf_pm_system_wakeup() for abort system suspend

hdd_abort_system_suspend() function currently uses pm_wakeup_hard_event(),
which does not work because device is not initialized. Switch to using
pm_system_wakeup() instead by calling qdf_pm_system_wakeup() wrapper.

Change-Id: Ib89eca5014729f6a2103e14c6f46540d1406a5a0
CRs-Fixed: 2566770
Alan Chen 5 years ago
parent
commit
e119c7dcc5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/hdd/src/wlan_hdd_driver_ops.c

+ 1 - 1
core/hdd/src/wlan_hdd_driver_ops.c

@@ -381,7 +381,7 @@ static int check_for_probe_defer(int ret)
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0))
 static void hdd_abort_system_suspend(struct device *dev)
 {
-	pm_wakeup_hard_event(dev);
+	qdf_pm_system_wakeup();
 }
 #else
 static void hdd_abort_system_suspend(struct device *dev)