]> Git Repo - linux.git/commitdiff
PCI/ASPM: Always build aspm.c
authorDavid E. Box <[email protected]>
Fri, 23 Feb 2024 20:58:48 +0000 (14:58 -0600)
committerBjorn Helgaas <[email protected]>
Thu, 7 Mar 2024 20:29:17 +0000 (14:29 -0600)
Some ASPM-related tasks, such as save and restore of LTR and L1SS
capabilities, still need to be performed when CONFIG_PCIEASPM is not
enabled. To prepare for these changes, wrap the current code in aspm.c
with an #ifdef and always build the file.

Link: https://lore.kernel.org/r/[email protected]
[bhelgaas: split build change from function moves]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: David E. Box <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
drivers/pci/pcie/Makefile
drivers/pci/pcie/aspm.c

index 8de4ed5f98f145065b6c2678f7e09dd184d09a24..6461aa93fe76eccd39c4af08e7e1c9c327e7b77d 100644 (file)
@@ -6,7 +6,7 @@ pcieportdrv-y                   := portdrv.o rcec.o
 
 obj-$(CONFIG_PCIEPORTBUS)      += pcieportdrv.o
 
-obj-$(CONFIG_PCIEASPM)         += aspm.o
+obj-y                          += aspm.o
 obj-$(CONFIG_PCIEAER)          += aer.o err.o
 obj-$(CONFIG_PCIEAER_INJECT)   += aer_inject.o
 obj-$(CONFIG_PCIE_PME)         += pme.o
index d1538f73f2f917ecbd81eb7c070680e7897cb3f2..d50c0f83430ff2dd0f3f0c4b633d81f4a4362136 100644 (file)
@@ -24,6 +24,8 @@
 
 #include "../pci.h"
 
+#ifdef CONFIG_PCIEASPM
+
 #ifdef MODULE_PARAM_PREFIX
 #undef MODULE_PARAM_PREFIX
 #endif
@@ -1517,3 +1519,5 @@ bool pcie_aspm_support_enabled(void)
 {
        return aspm_support_enabled;
 }
+
+#endif /* CONFIG_PCIEASPM */
This page took 0.057898 seconds and 4 git commands to generate.