summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/device/pciexp_device.c3
-rw-r--r--src/include/device/device.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/device/pciexp_device.c b/src/device/pciexp_device.c
index b15d9c2a2b..502494dad4 100644
--- a/src/device/pciexp_device.c
+++ b/src/device/pciexp_device.c
@@ -377,6 +377,9 @@ static void pciexp_enable_aspm(device_t root, unsigned root_cap,
u16 lnkctl;
u32 devcap;
+ if (endp->disable_pcie_aspm)
+ return;
+
/* Get endpoint device capabilities for acceptable limits */
devcap = pci_read_config32(endp, endp_cap + PCI_EXP_DEVCAP);
diff --git a/src/include/device/device.h b/src/include/device/device.h
index 02a933ecb8..acead58f8a 100644
--- a/src/include/device/device.h
+++ b/src/include/device/device.h
@@ -130,6 +130,7 @@ struct device {
unsigned int enabled : 1; /* set if we should enable the device */
unsigned int initialized : 1; /* 1 if we have initialized the device */
unsigned int on_mainboard : 1;
+ unsigned int disable_pcie_aspm : 1;
struct pci_irq_info pci_irq_info[4];
u8 command;