From eaae33b21be142759d3cb6d31fc90a15d0f02982 Mon Sep 17 00:00:00 2001 From: "Luis R. Rodriguez" Date: Tue, 11 Dec 2012 18:26:45 -0800 Subject: [PATCH] compat: backport PCI_EXP_LNKCTL_ASPM_L0S and PCI_EXP_LNKCTL_ASPM_L1 This backports the addition of two defines added by the commit below. commit 7508320678b7819ac6aeb89580b8622a424ce586 Author: Bjorn Helgaas Date: Wed Dec 5 13:51:19 2012 -0700 PCI: Add standard PCIe Capability Link ASPM field names Add standard #defines for ASPM fields in PCI Express Link Capability and Link Control registers. Previously we used PCIE_LINK_STATE_L0S and PCIE_LINK_STATE_L1 directly, but these are defined for the Linux ASPM interfaces, e.g., pci_disable_link_state(), and only coincidentally match the actual register bits. PCIE_LINK_STATE_CLKPM, also part of that interface, does not match the register bit. Signed-off-by: Bjorn Helgaas Reviewed-by: Kenji Kaneshige Acked-by: Kenji Kaneshige Signed-off-by: Luis R. Rodriguez --- include/linux/compat-3.8.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/compat-3.8.h b/include/linux/compat-3.8.h index 3b6b1c493029..052de9570e07 100644 --- a/include/linux/compat-3.8.h +++ b/include/linux/compat-3.8.h @@ -10,6 +10,9 @@ #define HID_BUS_ANY 0xffff #define HID_GROUP_ANY 0x0000 +#define PCI_EXP_LNKCTL_ASPM_L0S 0x01 /* L0s Enable */ +#define PCI_EXP_LNKCTL_ASPM_L1 0x02 /* L1 Enable */ + extern bool hid_ignore(struct hid_device *); /* This backports: -- 2.30.2