qcacld-3.0: Return -EAGAIN from idle shutdown if system is suspending

Return -EAGAIN from idle shutdown callback API if system suspend is
ongoing such that cnss driver does not turn off suspend the PCIe link
and psoc idle shutdown can be re-tried later.

Change-Id: If859abb70c18d03c2e73a8c589a4e138b98cb996
CRs-Fixed: 2518448
This commit is contained in:
Alan Chen
2019-08-30 12:17:22 -07:00
committed by nshrivas
parent e1b50e5a80
commit d841bcca03

View File

@@ -9735,7 +9735,7 @@ static int __hdd_psoc_idle_shutdown(struct hdd_context *hdd_ctx)
osif_psoc_sync_wait_for_ops(psoc_sync);
QDF_BUG(!hdd_wlan_stop_modules(hdd_ctx, false));
errno = hdd_wlan_stop_modules(hdd_ctx, false);
osif_psoc_sync_trans_stop(psoc_sync);
@@ -11872,7 +11872,7 @@ int hdd_wlan_stop_modules(struct hdd_context *hdd_ctx, bool ftm_mode)
hdd_psoc_idle_timer_start(hdd_ctx);
cds_set_module_stop_in_progress(false);
return 0;
return -EAGAIN;
}
}