Prechádzať zdrojové kódy

qcacld-3.0: Enable to complie runtime PM feature

Currently the feature flag is enabled at a wrong place since CDEFINES
will be reset later. Move it to the correct place in order to compile
the feature by default. To enable this feature, the corresponding ini
configs need to be set properly.

Change-Id: I22e3c3ac7c81c12700bfa6bb78cc84c20e3e331f
CRs-fixed: 2023358
Yue Ma 8 rokov pred
rodič
commit
2b09131260
1 zmenil súbory, kde vykonal 7 pridanie a 7 odobranie
  1. 7 7
      Kbuild

+ 7 - 7
Kbuild

@@ -348,13 +348,6 @@ ifeq ($(CONFIG_ROME_IF),pci)
 	CONFIG_EXT_WOW := 1
 endif
 
-# Flag to enable bus auto suspend
-ifeq ($(CONFIG_ROME_IF),pci)
-ifeq ($(CONFIG_BUS_AUTO_SUSPEND), y)
-CDEFINES += -DFEATURE_RUNTIME_PM
-endif
-endif
-
 #Set this to 1 to catch erroneous Target accesses during debug.
 CONFIG_ATH_PCIE_ACCESS_DEBUG := 0
 
@@ -1515,6 +1508,13 @@ CDEFINES += -DCONFIG_PLD_PCIE_CNSS
 CDEFINES += -DCONFIG_PLD_PCIE_INIT
 endif
 
+# Flag to enable bus auto suspend
+ifeq ($(CONFIG_ROME_IF),pci)
+ifeq ($(CONFIG_BUS_AUTO_SUSPEND), y)
+CDEFINES += -DFEATURE_RUNTIME_PM
+endif
+endif
+
 ifeq ($(CONFIG_ICNSS), y)
 CDEFINES += -DCONFIG_PLD_SNOC_ICNSS
 endif