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 @@ -1571,6 +1571,11 @@ static __maybe_unused int ath11k_pci_pm_suspend(struct device *dev)
1571
1571
struct ath11k_base * ab = dev_get_drvdata (dev );
1572
1572
int ret ;
1573
1573
1574
+ if (test_bit (ATH11K_FLAG_QMI_FAIL , & ab -> dev_flags )) {
1575
+ ath11k_dbg (ab , ATH11K_DBG_BOOT , "boot skipping pci suspend as qmi is not initialised\n" );
1576
+ return 0 ;
1577
+ }
1578
+
1574
1579
ret = ath11k_core_suspend (ab );
1575
1580
if (ret )
1576
1581
ath11k_warn (ab , "failed to suspend core: %d\n" , ret );
@@ -1583,6 +1588,11 @@ static __maybe_unused int ath11k_pci_pm_resume(struct device *dev)
1583
1588
struct ath11k_base * ab = dev_get_drvdata (dev );
1584
1589
int ret ;
1585
1590
1591
+ if (test_bit (ATH11K_FLAG_QMI_FAIL , & ab -> dev_flags )) {
1592
+ ath11k_dbg (ab , ATH11K_DBG_BOOT , "boot skipping pci resume as qmi is not initialised\n" );
1593
+ return 0 ;
1594
+ }
1595
+
1586
1596
ret = ath11k_core_resume (ab );
1587
1597
if (ret )
1588
1598
ath11k_warn (ab , "failed to resume core: %d\n" , ret );
You can’t perform that action at this time.
0 commit comments