]> git.ipfire.org Git - thirdparty/pciutils.git/commitdiff
lspci: Fully decode ASPM support from Link Capabilities
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 17 May 2013 19:48:19 +0000 (13:48 -0600)
committerMartin Mares <mj@ucw.cz>
Mon, 20 May 2013 07:05:47 +0000 (09:05 +0200)
The ASPM Support field in Link Capabilities is two bits, and all four
possible encodings are defined as of PCIe spec r3.0.  Previously, lspci
only decoded values 1, 2, and 3.  This adds 0, so lspci will show "ASPM
not supported" instead of "ASPM unknown".

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
ls-caps.c

index bddb45562adcb8b3dbfe548bad908fc789e976a1..752a7713e34fdd1f5d8dc5a6c657b21bdc20e15f 100644 (file)
--- a/ls-caps.c
+++ b/ls-caps.c
@@ -728,6 +728,8 @@ static char *aspm_support(int code)
 {
   switch (code)
     {
+      case 0:
+        return "not supported";
       case 1:
        return "L0s";
       case 2: