Search Linux Wireless

[PATCH] [PATCH v2] compat: backport linux/pci-aspm.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



pci-aspm.h was introduced in kernel 2.6.25 and is used by the ath5k and iwlwifi driver.

v2: Do not place the empty functions into pci-aspm.h. Now we do not
have to change pci-aspm.h when it changes in the mainline kernel only
compat-2.6.26.h has to be changed.

Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx>
---

This should also go into stable.

 include/linux/compat-2.6.26.h |    9 +++++++++
 include/linux/pci-aspm.h      |    5 +++++
 2 files changed, 14 insertions(+), 0 deletions(-)
 create mode 100644 include/linux/pci-aspm.h

diff --git a/include/linux/compat-2.6.26.h b/include/linux/compat-2.6.26.h
index 8251177..30ee46c 100644
--- a/include/linux/compat-2.6.26.h
+++ b/include/linux/compat-2.6.26.h
@@ -394,6 +394,15 @@ struct net *dev_net(const struct net_device *dev)
 
 #endif /* xtensa */
 
+#define PCIE_LINK_STATE_L0S	1
+#define PCIE_LINK_STATE_L1	2
+#define PCIE_LINK_STATE_CLKPM	4
+
+static inline void pci_disable_link_state(struct pci_dev *pdev, int state)
+{
+}
+/* source: include/linux/pci-aspm.h */
+
 #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26)) */
 
 #endif /* LINUX_26_26_COMPAT_H */
diff --git a/include/linux/pci-aspm.h b/include/linux/pci-aspm.h
new file mode 100644
index 0000000..2bc6efb
--- /dev/null
+++ b/include/linux/pci-aspm.h
@@ -0,0 +1,5 @@
+#include <linux/version.h>
+
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,25))
+#include_next <linux/pci-aspm.h>
+#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,25)) */
-- 
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux