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
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user