File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
drivers/net/wireless/ath/ath11k Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -1382,6 +1382,11 @@ static __maybe_unused int ath11k_pci_pm_suspend(struct device *dev)
1382
1382
struct ath11k_base * ab = dev_get_drvdata (dev );
1383
1383
int ret ;
1384
1384
1385
+ if (test_bit (ATH11K_FLAG_QMI_FAIL , & ab -> dev_flags )) {
1386
+ ath11k_dbg (ab , ATH11K_DBG_BOOT , "boot skipping pci suspend as qmi is not initialised\n" );
1387
+ return 0 ;
1388
+ }
1389
+
1385
1390
ret = ath11k_core_suspend (ab );
1386
1391
if (ret )
1387
1392
ath11k_warn (ab , "failed to suspend core: %d\n" , ret );
@@ -1394,6 +1399,11 @@ static __maybe_unused int ath11k_pci_pm_resume(struct device *dev)
1394
1399
struct ath11k_base * ab = dev_get_drvdata (dev );
1395
1400
int ret ;
1396
1401
1402
+ if (test_bit (ATH11K_FLAG_QMI_FAIL , & ab -> dev_flags )) {
1403
+ ath11k_dbg (ab , ATH11K_DBG_BOOT , "boot skipping pci resume as qmi is not initialised\n" );
1404
+ return 0 ;
1405
+ }
1406
+
1397
1407
ret = ath11k_core_resume (ab );
1398
1408
if (ret )
1399
1409
ath11k_warn (ab , "failed to resume core: %d\n" , ret );
You can’t perform that action at this time.
0 commit comments