diff --git a/hif/src/pcie/if_pci.c b/hif/src/pcie/if_pci.c index 1e8e0cd257ef..5a47f0cd9d29 100644 --- a/hif/src/pcie/if_pci.c +++ b/hif/src/pcie/if_pci.c @@ -1645,9 +1645,7 @@ void hif_disable_bus(void *bdev) #define OL_ATH_PCI_PM_CONTROL 0x44 -#ifdef CONFIG_CNSS - -#ifdef RUNTIME_PM +#ifdef FEATURE_RUNTIME_PM /** * hif_runtime_prevent_linkdown() - prevent or allow a runtime pm from occuring * @scn: hif context @@ -1670,6 +1668,7 @@ static void hif_runtime_prevent_linkdown(struct ol_softc *scn, bool flag) } #endif +#if defined(CONFIG_CNSS) && defined(CONFIG_PCI_MSM) /** * hif_bus_prevent_linkdown(): allow or permit linkdown * @flag: true prevents linkdown, false allows @@ -1686,6 +1685,13 @@ void hif_bus_prevent_linkdown(struct ol_softc *scn, bool flag) hif_runtime_prevent_linkdown(scn, flag); cnss_wlan_pm_control(flag); } +#else +void hif_bus_prevent_linkdown(struct ol_softc *scn, bool flag) +{ + HIF_ERROR("wlan: %s pcie power collapse", + (flag ? "disable" : "enable")); + hif_runtime_prevent_linkdown(scn, flag); +} #endif /**