From 2b091312605e5a0acfa65250e95df575b3512712 Mon Sep 17 00:00:00 2001 From: Yue Ma Date: Wed, 15 Feb 2017 15:56:47 -0800 Subject: [PATCH] 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 --- Kbuild | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Kbuild b/Kbuild index 18d277e8028f..f694f4ddeb90 100644 --- a/Kbuild +++ b/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