aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wilcox <matthew@wil.cx>2009-12-13 08:11:35 -0500
committerJesse Barnes <jbarnes@virtuousgeek.org>2010-02-22 16:15:19 -0800
commit9dfd97fe12f79ec8b68feb63912a4ef2f31f571a (patch)
tree845515c430a3cc48b1d88496d3b8f4d13bd7efb2
parent45b4cdd57ef0e57555b2ab61b584784819b39365 (diff)
downloadkernel_samsung_aries-9dfd97fe12f79ec8b68feb63912a4ef2f31f571a.zip
kernel_samsung_aries-9dfd97fe12f79ec8b68feb63912a4ef2f31f571a.tar.gz
kernel_samsung_aries-9dfd97fe12f79ec8b68feb63912a4ef2f31f571a.tar.bz2
PCI: Add support for reporting PCIe 3.0 speeds
Add the 8.0 GT/s speed. Signed-off-by: Matthew Wilcox <willy@linux.intel.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
-rw-r--r--drivers/pci/probe.c2
-rw-r--r--drivers/pci/slot.c1
-rw-r--r--include/linux/pci.h1
3 files changed, 3 insertions, 1 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index 2803ab9..9672760 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -416,7 +416,7 @@ static unsigned char pcie_link_speed[] = {
PCI_SPEED_UNKNOWN, /* 0 */
PCIE_SPEED_2_5GT, /* 1 */
PCIE_SPEED_5_0GT, /* 2 */
- PCI_SPEED_UNKNOWN, /* 3 */
+ PCIE_SPEED_8_0GT, /* 3 */
PCI_SPEED_UNKNOWN, /* 4 */
PCI_SPEED_UNKNOWN, /* 5 */
PCI_SPEED_UNKNOWN, /* 6 */
diff --git a/drivers/pci/slot.c b/drivers/pci/slot.c
index c7260d4..49c9e6c 100644
--- a/drivers/pci/slot.c
+++ b/drivers/pci/slot.c
@@ -71,6 +71,7 @@ static char *pci_bus_speed_strings[] = {
"133 MHz PCI-X 533", /* 0x13 */
"2.5 GT/s PCIe", /* 0x14 */
"5.0 GT/s PCIe", /* 0x15 */
+ "8.0 GT/s PCIe", /* 0x16 */
};
static ssize_t bus_speed_read(enum pci_bus_speed speed, char *buf)
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 842adaa..0c3a294 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -210,6 +210,7 @@ enum pci_bus_speed {
PCI_SPEED_133MHz_PCIX_533 = 0x13,
PCIE_SPEED_2_5GT = 0x14,
PCIE_SPEED_5_0GT = 0x15,
+ PCIE_SPEED_8_0GT = 0x16,
PCI_SPEED_UNKNOWN = 0xff,
};