Lines Matching full:ab
39 static int ath11k_pci_bus_wake_up(struct ath11k_base *ab) in ath11k_pci_bus_wake_up() argument
41 struct ath11k_pci *ab_pci = ath11k_pci_priv(ab); in ath11k_pci_bus_wake_up()
46 static void ath11k_pci_bus_release(struct ath11k_base *ab) in ath11k_pci_bus_release() argument
48 struct ath11k_pci *ab_pci = ath11k_pci_priv(ab); in ath11k_pci_bus_release()
53 static u32 ath11k_pci_get_window_start(struct ath11k_base *ab, u32 offset) in ath11k_pci_get_window_start() argument
55 if (!ab->hw_params.static_window_map) in ath11k_pci_get_window_start()
61 else if ((offset ^ HAL_SEQ_WCSS_UMAC_CE0_SRC_REG(ab)) < in ath11k_pci_get_window_start()
71 struct ath11k_base *ab = ab_pci->ab; in ath11k_pci_select_window() local
79 ab->mem + ATH11K_PCI_WINDOW_REG_ADDRESS); in ath11k_pci_select_window()
80 ioread32(ab->mem + ATH11K_PCI_WINDOW_REG_ADDRESS); in ath11k_pci_select_window()
86 ath11k_pci_window_write32(struct ath11k_base *ab, u32 offset, u32 value) in ath11k_pci_window_write32() argument
88 struct ath11k_pci *ab_pci = ath11k_pci_priv(ab); in ath11k_pci_window_write32()
91 window_start = ath11k_pci_get_window_start(ab, offset); in ath11k_pci_window_write32()
96 iowrite32(value, ab->mem + window_start + in ath11k_pci_window_write32()
100 iowrite32(value, ab->mem + window_start + in ath11k_pci_window_write32()
105 static u32 ath11k_pci_window_read32(struct ath11k_base *ab, u32 offset) in ath11k_pci_window_read32() argument
107 struct ath11k_pci *ab_pci = ath11k_pci_priv(ab); in ath11k_pci_window_read32()
110 window_start = ath11k_pci_get_window_start(ab, offset); in ath11k_pci_window_read32()
115 val = ioread32(ab->mem + window_start + in ath11k_pci_window_read32()
119 val = ioread32(ab->mem + window_start + in ath11k_pci_window_read32()
126 int ath11k_pci_get_msi_irq(struct ath11k_base *ab, unsigned int vector) in ath11k_pci_get_msi_irq() argument
128 struct pci_dev *pci_dev = to_pci_dev(ab->dev); in ath11k_pci_get_msi_irq()
171 ab_pci->ab->mem + ATH11K_PCI_WINDOW_REG_ADDRESS); in ath11k_pci_select_static_window()
174 static void ath11k_pci_soc_global_reset(struct ath11k_base *ab) in ath11k_pci_soc_global_reset() argument
178 val = ath11k_pcic_read32(ab, PCIE_SOC_GLOBAL_RESET); in ath11k_pci_soc_global_reset()
182 ath11k_pcic_write32(ab, PCIE_SOC_GLOBAL_RESET, val); in ath11k_pci_soc_global_reset()
191 ath11k_pcic_write32(ab, PCIE_SOC_GLOBAL_RESET, val); in ath11k_pci_soc_global_reset()
195 val = ath11k_pcic_read32(ab, PCIE_SOC_GLOBAL_RESET); in ath11k_pci_soc_global_reset()
197 ath11k_warn(ab, "link down error during global reset\n"); in ath11k_pci_soc_global_reset()
200 static void ath11k_pci_clear_dbg_registers(struct ath11k_base *ab) in ath11k_pci_clear_dbg_registers() argument
205 val = ath11k_pcic_read32(ab, PCIE_Q6_COOKIE_ADDR); in ath11k_pci_clear_dbg_registers()
206 ath11k_dbg(ab, ATH11K_DBG_PCI, "cookie:0x%x\n", val); in ath11k_pci_clear_dbg_registers()
208 val = ath11k_pcic_read32(ab, WLAON_WARM_SW_ENTRY); in ath11k_pci_clear_dbg_registers()
209 ath11k_dbg(ab, ATH11K_DBG_PCI, "WLAON_WARM_SW_ENTRY 0x%x\n", val); in ath11k_pci_clear_dbg_registers()
217 ath11k_pcic_write32(ab, WLAON_WARM_SW_ENTRY, 0); in ath11k_pci_clear_dbg_registers()
220 val = ath11k_pcic_read32(ab, WLAON_WARM_SW_ENTRY); in ath11k_pci_clear_dbg_registers()
221 ath11k_dbg(ab, ATH11K_DBG_PCI, "WLAON_WARM_SW_ENTRY 0x%x\n", val); in ath11k_pci_clear_dbg_registers()
226 val = ath11k_pcic_read32(ab, WLAON_SOC_RESET_CAUSE_REG); in ath11k_pci_clear_dbg_registers()
227 ath11k_dbg(ab, ATH11K_DBG_PCI, "soc reset cause:%d\n", val); in ath11k_pci_clear_dbg_registers()
230 static int ath11k_pci_set_link_reg(struct ath11k_base *ab, in ath11k_pci_set_link_reg() argument
236 v = ath11k_pcic_read32(ab, offset); in ath11k_pci_set_link_reg()
241 ath11k_pcic_write32(ab, offset, (v & ~mask) | value); in ath11k_pci_set_link_reg()
243 v = ath11k_pcic_read32(ab, offset); in ath11k_pci_set_link_reg()
250 ath11k_warn(ab, "failed to set pcie link register 0x%08x: 0x%08x != 0x%08x\n", in ath11k_pci_set_link_reg()
256 static int ath11k_pci_fix_l1ss(struct ath11k_base *ab) in ath11k_pci_fix_l1ss() argument
260 ret = ath11k_pci_set_link_reg(ab, in ath11k_pci_fix_l1ss()
261 PCIE_QSERDES_COM_SYSCLK_EN_SEL_REG(ab), in ath11k_pci_fix_l1ss()
265 ath11k_warn(ab, "failed to set sysclk: %d\n", ret); in ath11k_pci_fix_l1ss()
269 ret = ath11k_pci_set_link_reg(ab, in ath11k_pci_fix_l1ss()
270 PCIE_PCS_OSC_DTCT_CONFIG1_REG(ab), in ath11k_pci_fix_l1ss()
274 ath11k_warn(ab, "failed to set dtct config1 error: %d\n", ret); in ath11k_pci_fix_l1ss()
278 ret = ath11k_pci_set_link_reg(ab, in ath11k_pci_fix_l1ss()
279 PCIE_PCS_OSC_DTCT_CONFIG2_REG(ab), in ath11k_pci_fix_l1ss()
283 ath11k_warn(ab, "failed to set dtct config2: %d\n", ret); in ath11k_pci_fix_l1ss()
287 ret = ath11k_pci_set_link_reg(ab, in ath11k_pci_fix_l1ss()
288 PCIE_PCS_OSC_DTCT_CONFIG4_REG(ab), in ath11k_pci_fix_l1ss()
292 ath11k_warn(ab, "failed to set dtct config4: %d\n", ret); in ath11k_pci_fix_l1ss()
299 static void ath11k_pci_enable_ltssm(struct ath11k_base *ab) in ath11k_pci_enable_ltssm() argument
304 val = ath11k_pcic_read32(ab, PCIE_PCIE_PARF_LTSSM); in ath11k_pci_enable_ltssm()
311 ath11k_pcic_write32(ab, PCIE_PCIE_PARF_LTSSM, PARM_LTSSM_VALUE); in ath11k_pci_enable_ltssm()
312 val = ath11k_pcic_read32(ab, PCIE_PCIE_PARF_LTSSM); in ath11k_pci_enable_ltssm()
315 ath11k_dbg(ab, ATH11K_DBG_PCI, "pci ltssm 0x%x\n", val); in ath11k_pci_enable_ltssm()
317 val = ath11k_pcic_read32(ab, GCC_GCC_PCIE_HOT_RST); in ath11k_pci_enable_ltssm()
319 ath11k_pcic_write32(ab, GCC_GCC_PCIE_HOT_RST, val); in ath11k_pci_enable_ltssm()
320 val = ath11k_pcic_read32(ab, GCC_GCC_PCIE_HOT_RST); in ath11k_pci_enable_ltssm()
322 ath11k_dbg(ab, ATH11K_DBG_PCI, "pci pcie_hot_rst 0x%x\n", val); in ath11k_pci_enable_ltssm()
327 static void ath11k_pci_clear_all_intrs(struct ath11k_base *ab) in ath11k_pci_clear_all_intrs() argument
334 ath11k_pcic_write32(ab, PCIE_PCIE_INT_ALL_CLEAR, PCIE_INT_CLEAR_ALL); in ath11k_pci_clear_all_intrs()
337 static void ath11k_pci_set_wlaon_pwr_ctrl(struct ath11k_base *ab) in ath11k_pci_set_wlaon_pwr_ctrl() argument
341 val = ath11k_pcic_read32(ab, WLAON_QFPROM_PWR_CTRL_REG); in ath11k_pci_set_wlaon_pwr_ctrl()
343 ath11k_pcic_write32(ab, WLAON_QFPROM_PWR_CTRL_REG, val); in ath11k_pci_set_wlaon_pwr_ctrl()
346 static void ath11k_pci_force_wake(struct ath11k_base *ab) in ath11k_pci_force_wake() argument
348 ath11k_pcic_write32(ab, PCIE_SOC_WAKE_PCIE_LOCAL_REG, 1); in ath11k_pci_force_wake()
352 static void ath11k_pci_sw_reset(struct ath11k_base *ab, bool power_on) in ath11k_pci_sw_reset() argument
357 ath11k_pci_enable_ltssm(ab); in ath11k_pci_sw_reset()
358 ath11k_pci_clear_all_intrs(ab); in ath11k_pci_sw_reset()
359 ath11k_pci_set_wlaon_pwr_ctrl(ab); in ath11k_pci_sw_reset()
360 if (ab->hw_params.fix_l1ss) in ath11k_pci_sw_reset()
361 ath11k_pci_fix_l1ss(ab); in ath11k_pci_sw_reset()
364 ath11k_mhi_clear_vector(ab); in ath11k_pci_sw_reset()
365 ath11k_pci_clear_dbg_registers(ab); in ath11k_pci_sw_reset()
366 ath11k_pci_soc_global_reset(ab); in ath11k_pci_sw_reset()
367 ath11k_mhi_set_mhictrl_reset(ab); in ath11k_pci_sw_reset()
370 static void ath11k_pci_init_qmi_ce_config(struct ath11k_base *ab) in ath11k_pci_init_qmi_ce_config() argument
372 struct ath11k_qmi_ce_cfg *cfg = &ab->qmi.ce_cfg; in ath11k_pci_init_qmi_ce_config()
374 cfg->tgt_ce = ab->hw_params.target_ce_config; in ath11k_pci_init_qmi_ce_config()
375 cfg->tgt_ce_len = ab->hw_params.target_ce_count; in ath11k_pci_init_qmi_ce_config()
377 cfg->svc_to_ce_map = ab->hw_params.svc_to_ce_map; in ath11k_pci_init_qmi_ce_config()
378 cfg->svc_to_ce_map_len = ab->hw_params.svc_to_ce_map_len; in ath11k_pci_init_qmi_ce_config()
379 ab->qmi.service_ins_id = ab->hw_params.qmi_service_ins_id; in ath11k_pci_init_qmi_ce_config()
381 ath11k_ce_get_shadow_config(ab, &cfg->shadow_reg_v2, in ath11k_pci_init_qmi_ce_config()
412 struct ath11k_base *ab = ab_pci->ab; in ath11k_pci_alloc_msi() local
413 const struct ath11k_msi_config *msi_config = ab->pci.msi.config; in ath11k_pci_alloc_msi()
424 set_bit(ATH11K_FLAG_MULTI_MSI_VECTORS, &ab->dev_flags); in ath11k_pci_alloc_msi()
434 clear_bit(ATH11K_FLAG_MULTI_MSI_VECTORS, &ab->dev_flags); in ath11k_pci_alloc_msi()
435 ab->pci.msi.config = &msi_config_one_msi; in ath11k_pci_alloc_msi()
436 ath11k_dbg(ab, ATH11K_DBG_PCI, "request MSI one vector\n"); in ath11k_pci_alloc_msi()
438 ath11k_info(ab, "MSI vectors: %d\n", num_vectors); in ath11k_pci_alloc_msi()
444 ath11k_err(ab, "msi_desc is NULL!\n"); in ath11k_pci_alloc_msi()
449 ab->pci.msi.ep_base_data = msi_desc->msg.data; in ath11k_pci_alloc_msi()
452 &ab->pci.msi.addr_lo); in ath11k_pci_alloc_msi()
456 &ab->pci.msi.addr_hi); in ath11k_pci_alloc_msi()
458 ab->pci.msi.addr_hi = 0; in ath11k_pci_alloc_msi()
461 ath11k_dbg(ab, ATH11K_DBG_PCI, "msi base data is %d\n", ab->pci.msi.ep_base_data); in ath11k_pci_alloc_msi()
483 ath11k_err(ab_pci->ab, "msi_desc is NULL!\n"); in ath11k_pci_config_msi_data()
488 ab_pci->ab->pci.msi.ep_base_data = msi_desc->msg.data; in ath11k_pci_config_msi_data()
490 ath11k_dbg(ab_pci->ab, ATH11K_DBG_PCI, "pci after request_irq msi_ep_base_data %d\n", in ath11k_pci_config_msi_data()
491 ab_pci->ab->pci.msi.ep_base_data); in ath11k_pci_config_msi_data()
498 struct ath11k_base *ab = ab_pci->ab; in ath11k_pci_claim() local
504 ath11k_err(ab, "pci device id mismatch: 0x%x 0x%x\n", in ath11k_pci_claim()
512 ath11k_err(ab, "failed to assign pci resource: %d\n", ret); in ath11k_pci_claim()
518 ath11k_err(ab, "failed to enable pci device: %d\n", ret); in ath11k_pci_claim()
524 ath11k_err(ab, "failed to request pci region: %d\n", ret); in ath11k_pci_claim()
531 ath11k_err(ab, "failed to set pci dma mask to %d: %d\n", in ath11k_pci_claim()
538 ab->mem_len = pci_resource_len(pdev, ATH11K_PCI_BAR_NUM); in ath11k_pci_claim()
539 ab->mem = pci_iomap(pdev, ATH11K_PCI_BAR_NUM, 0); in ath11k_pci_claim()
540 if (!ab->mem) { in ath11k_pci_claim()
541 ath11k_err(ab, "failed to map pci bar %d\n", ATH11K_PCI_BAR_NUM); in ath11k_pci_claim()
546 ath11k_dbg(ab, ATH11K_DBG_BOOT, "boot pci_mem 0x%pK\n", ab->mem); in ath11k_pci_claim()
561 struct ath11k_base *ab = ab_pci->ab; in ath11k_pci_free_region() local
564 pci_iounmap(pci_dev, ab->mem); in ath11k_pci_free_region()
565 ab->mem = NULL; in ath11k_pci_free_region()
574 struct ath11k_base *ab = ab_pci->ab; in ath11k_pci_aspm_disable() local
579 ath11k_dbg(ab, ATH11K_DBG_PCI, "pci link_ctl 0x%04x L0s %d L1 %d\n", in ath11k_pci_aspm_disable()
598 static int ath11k_pci_power_up(struct ath11k_base *ab) in ath11k_pci_power_up() argument
600 struct ath11k_pci *ab_pci = ath11k_pci_priv(ab); in ath11k_pci_power_up()
604 clear_bit(ATH11K_FLAG_DEVICE_INIT_DONE, &ab->dev_flags); in ath11k_pci_power_up()
605 ath11k_pci_sw_reset(ab_pci->ab, true); in ath11k_pci_power_up()
616 ath11k_err(ab, "failed to start mhi: %d\n", ret); in ath11k_pci_power_up()
620 if (ab->hw_params.static_window_map) in ath11k_pci_power_up()
626 static void ath11k_pci_power_down(struct ath11k_base *ab) in ath11k_pci_power_down() argument
628 struct ath11k_pci *ab_pci = ath11k_pci_priv(ab); in ath11k_pci_power_down()
633 ath11k_pci_force_wake(ab_pci->ab); in ath11k_pci_power_down()
638 clear_bit(ATH11K_FLAG_DEVICE_INIT_DONE, &ab->dev_flags); in ath11k_pci_power_down()
639 ath11k_pci_sw_reset(ab_pci->ab, false); in ath11k_pci_power_down()
642 static int ath11k_pci_hif_suspend(struct ath11k_base *ab) in ath11k_pci_hif_suspend() argument
644 struct ath11k_pci *ar_pci = ath11k_pci_priv(ab); in ath11k_pci_hif_suspend()
649 static int ath11k_pci_hif_resume(struct ath11k_base *ab) in ath11k_pci_hif_resume() argument
651 struct ath11k_pci *ar_pci = ath11k_pci_priv(ab); in ath11k_pci_hif_resume()
656 static void ath11k_pci_hif_ce_irq_enable(struct ath11k_base *ab) in ath11k_pci_hif_ce_irq_enable() argument
658 ath11k_pcic_ce_irqs_enable(ab); in ath11k_pci_hif_ce_irq_enable()
661 static void ath11k_pci_hif_ce_irq_disable(struct ath11k_base *ab) in ath11k_pci_hif_ce_irq_disable() argument
663 ath11k_pcic_ce_irq_disable_sync(ab); in ath11k_pci_hif_ce_irq_disable()
666 static int ath11k_pci_start(struct ath11k_base *ab) in ath11k_pci_start() argument
668 struct ath11k_pci *ab_pci = ath11k_pci_priv(ab); in ath11k_pci_start()
673 if (test_bit(ATH11K_FLAG_MULTI_MSI_VECTORS, &ab->dev_flags)) in ath11k_pci_start()
676 ath11k_info(ab, "leaving PCI ASPM disabled to avoid MHI M2 problems\n"); in ath11k_pci_start()
678 ath11k_pcic_start(ab); in ath11k_pci_start()
703 static void ath11k_pci_read_hw_version(struct ath11k_base *ab, u32 *major, u32 *minor) in ath11k_pci_read_hw_version() argument
707 soc_hw_version = ath11k_pcic_read32(ab, TCSR_SOC_HW_VERSION); in ath11k_pci_read_hw_version()
713 ath11k_dbg(ab, ATH11K_DBG_PCI, "pci tcsr_soc_hw_version major %d minor %d\n", in ath11k_pci_read_hw_version()
720 if (test_bit(ATH11K_FLAG_MULTI_MSI_VECTORS, &ab_pci->ab->dev_flags)) in ath11k_pci_set_irq_affinity_hint()
729 struct ath11k_base *ab; in ath11k_pci_probe() local
735 ab = ath11k_core_alloc(&pdev->dev, sizeof(*ab_pci), ATH11K_BUS_PCI); in ath11k_pci_probe()
737 if (!ab) { in ath11k_pci_probe()
742 ab->dev = &pdev->dev; in ath11k_pci_probe()
743 pci_set_drvdata(pdev, ab); in ath11k_pci_probe()
744 ab_pci = ath11k_pci_priv(ab); in ath11k_pci_probe()
746 ab_pci->ab = ab; in ath11k_pci_probe()
748 ab->hif.ops = &ath11k_pci_hif_ops; in ath11k_pci_probe()
749 pci_set_drvdata(pdev, ab); in ath11k_pci_probe()
756 ret = of_property_read_u32(ab->dev->of_node, "memory-region", &addr); in ath11k_pci_probe()
758 set_bit(ATH11K_FLAG_FIXED_MEM_RGN, &ab->dev_flags); in ath11k_pci_probe()
762 ath11k_err(ab, "failed to claim device: %d\n", ret); in ath11k_pci_probe()
766 ath11k_dbg(ab, ATH11K_DBG_BOOT, "pci probe %04x:%04x %04x:%04x\n", in ath11k_pci_probe()
770 ab->id.vendor = pdev->vendor; in ath11k_pci_probe()
771 ab->id.device = pdev->device; in ath11k_pci_probe()
772 ab->id.subsystem_vendor = pdev->subsystem_vendor; in ath11k_pci_probe()
773 ab->id.subsystem_device = pdev->subsystem_device; in ath11k_pci_probe()
777 ath11k_pci_read_hw_version(ab, &soc_hw_version_major, in ath11k_pci_probe()
781 ab->hw_rev = ATH11K_HW_QCA6390_HW20; in ath11k_pci_probe()
794 ab->hw_rev = ATH11K_HW_QCN9074_HW10; in ath11k_pci_probe()
797 ab->id.bdf_search = ATH11K_BDF_SEARCH_BUS_AND_BOARD; in ath11k_pci_probe()
798 ath11k_pci_read_hw_version(ab, &soc_hw_version_major, in ath11k_pci_probe()
805 ab->hw_rev = ATH11K_HW_WCN6855_HW20; in ath11k_pci_probe()
809 ab->hw_rev = ATH11K_HW_WCN6855_HW21; in ath11k_pci_probe()
832 ret = ath11k_pcic_register_pci_ops(ab, pci_ops); in ath11k_pci_probe()
834 ath11k_err(ab, "failed to register PCI ops: %d\n", ret); in ath11k_pci_probe()
838 ret = ath11k_pcic_init_msi_config(ab); in ath11k_pci_probe()
840 ath11k_err(ab, "failed to init msi config: %d\n", ret); in ath11k_pci_probe()
846 ath11k_err(ab, "failed to enable msi: %d\n", ret); in ath11k_pci_probe()
850 ret = ath11k_core_pre_init(ab); in ath11k_pci_probe()
856 ath11k_err(ab, "failed to register mhi: %d\n", ret); in ath11k_pci_probe()
860 ret = ath11k_hal_srng_init(ab); in ath11k_pci_probe()
864 ret = ath11k_ce_alloc_pipes(ab); in ath11k_pci_probe()
866 ath11k_err(ab, "failed to allocate ce pipes: %d\n", ret); in ath11k_pci_probe()
870 ath11k_pci_init_qmi_ce_config(ab); in ath11k_pci_probe()
872 ret = ath11k_pcic_config_irq(ab); in ath11k_pci_probe()
874 ath11k_err(ab, "failed to config irq: %d\n", ret); in ath11k_pci_probe()
880 ath11k_err(ab, "failed to set irq affinity %d\n", ret); in ath11k_pci_probe()
891 ath11k_err(ab, "failed to config msi_data: %d\n", ret); in ath11k_pci_probe()
895 ret = ath11k_core_init(ab); in ath11k_pci_probe()
897 ath11k_err(ab, "failed to init core: %d\n", ret); in ath11k_pci_probe()
906 ath11k_pcic_free_irq(ab); in ath11k_pci_probe()
909 ath11k_ce_free_pipes(ab); in ath11k_pci_probe()
912 ath11k_hal_srng_deinit(ab); in ath11k_pci_probe()
924 ath11k_core_free(ab); in ath11k_pci_probe()
931 struct ath11k_base *ab = pci_get_drvdata(pdev); in ath11k_pci_remove() local
932 struct ath11k_pci *ab_pci = ath11k_pci_priv(ab); in ath11k_pci_remove()
936 if (test_bit(ATH11K_FLAG_QMI_FAIL, &ab->dev_flags)) { in ath11k_pci_remove()
937 ath11k_pci_power_down(ab); in ath11k_pci_remove()
938 ath11k_debugfs_soc_destroy(ab); in ath11k_pci_remove()
939 ath11k_qmi_deinit_service(ab); in ath11k_pci_remove()
943 set_bit(ATH11K_FLAG_UNREGISTERING, &ab->dev_flags); in ath11k_pci_remove()
945 ath11k_core_deinit(ab); in ath11k_pci_remove()
950 ath11k_pcic_free_irq(ab); in ath11k_pci_remove()
954 ath11k_hal_srng_deinit(ab); in ath11k_pci_remove()
955 ath11k_ce_free_pipes(ab); in ath11k_pci_remove()
956 ath11k_core_free(ab); in ath11k_pci_remove()
961 struct ath11k_base *ab = pci_get_drvdata(pdev); in ath11k_pci_shutdown() local
962 struct ath11k_pci *ab_pci = ath11k_pci_priv(ab); in ath11k_pci_shutdown()
965 ath11k_pci_power_down(ab); in ath11k_pci_shutdown()
970 struct ath11k_base *ab = dev_get_drvdata(dev); in ath11k_pci_pm_suspend() local
973 if (test_bit(ATH11K_FLAG_QMI_FAIL, &ab->dev_flags)) { in ath11k_pci_pm_suspend()
974 ath11k_dbg(ab, ATH11K_DBG_BOOT, "boot skipping pci suspend as qmi is not initialised\n"); in ath11k_pci_pm_suspend()
978 ret = ath11k_core_suspend(ab); in ath11k_pci_pm_suspend()
980 ath11k_warn(ab, "failed to suspend core: %d\n", ret); in ath11k_pci_pm_suspend()
987 struct ath11k_base *ab = dev_get_drvdata(dev); in ath11k_pci_pm_resume() local
990 if (test_bit(ATH11K_FLAG_QMI_FAIL, &ab->dev_flags)) { in ath11k_pci_pm_resume()
991 ath11k_dbg(ab, ATH11K_DBG_BOOT, "boot skipping pci resume as qmi is not initialised\n"); in ath11k_pci_pm_resume()
995 ret = ath11k_core_resume(ab); in ath11k_pci_pm_resume()
997 ath11k_warn(ab, "failed to resume core: %d\n", ret); in ath11k_pci_pm_resume()