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)
13821382 struct ath11k_base * ab = dev_get_drvdata (dev );
13831383 int ret ;
13841384
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+
13851390 ret = ath11k_core_suspend (ab );
13861391 if (ret )
13871392 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)
13941399 struct ath11k_base * ab = dev_get_drvdata (dev );
13951400 int ret ;
13961401
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+
13971407 ret = ath11k_core_resume (ab );
13981408 if (ret )
13991409 ath11k_warn (ab , "failed to resume core: %d\n" , ret );
You can’t perform that action at this time.
0 commit comments