]> git.ipfire.org Git - thirdparty/pciutils.git/commitdiff
lspci: Drop PCIe LnkCtl "Retrain Link" decoding
authorBjorn Helgaas <bhelgaas@google.com>
Mon, 9 Sep 2013 23:14:21 +0000 (17:14 -0600)
committerMartin Mares <mj@ucw.cz>
Sun, 10 Nov 2013 11:32:56 +0000 (12:32 +0100)
Per PCIe spec r3.0, Table 7-16, the Retrain Link bit is writable but
always returns 0 when read, so decoding it gives no useful information.

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

index 3b554fe19a9a1dbf3659a8d76898f4f847fa748b..f192510181f3fda96803269879bf266315dcad8e 100644 (file)
--- a/ls-caps.c
+++ b/ls-caps.c
@@ -776,9 +776,8 @@ static void cap_express_link(struct device *d, int where, int type)
   if ((type == PCI_EXP_TYPE_ROOT_PORT) || (type == PCI_EXP_TYPE_ENDPOINT) ||
       (type == PCI_EXP_TYPE_LEG_END) || (type == PCI_EXP_TYPE_PCI_BRIDGE))
     printf(" RCB %d bytes", w & PCI_EXP_LNKCTL_RCB ? 128 : 64);
-  printf(" Disabled%c Retrain%c CommClk%c\n\t\t\tExtSynch%c ClockPM%c AutWidDis%c BWInt%c AutBWInt%c\n",
+  printf(" Disabled%c CommClk%c\n\t\t\tExtSynch%c ClockPM%c AutWidDis%c BWInt%c AutBWInt%c\n",
        FLAG(w, PCI_EXP_LNKCTL_DISABLE),
-       FLAG(w, PCI_EXP_LNKCTL_RETRAIN),
        FLAG(w, PCI_EXP_LNKCTL_CLOCK),
        FLAG(w, PCI_EXP_LNKCTL_XSYNCH),
        FLAG(w, PCI_EXP_LNKCTL_CLOCKPM),