]> git.ipfire.org Git - thirdparty/pciutils.git/commitdiff
lspci: Decode Interrupt Pin and Interrupt Line for PCI-PCI bridges
authorBjorn Helgaas <bhelgaas@google.com>
Sat, 8 Mar 2014 00:26:17 +0000 (17:26 -0700)
committerMartin Mares <mj@ucw.cz>
Sat, 1 Nov 2014 15:22:47 +0000 (16:22 +0100)
Bridges can implement interrupt pins, so decode this information.  See
PCI-to-PCI Bridge spec r1.2, sec 3.2.5.17.

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

diff --git a/lspci.c b/lspci.c
index eb17af5a2ab5828d7a18d06478781ef1ac83d37d..39a464772f8e8649e19d2e8438ffd85d7f94887d 100644 (file)
--- a/lspci.c
+++ b/lspci.c
@@ -668,7 +668,7 @@ show_verbose(struct device *d)
     case PCI_HEADER_TYPE_BRIDGE:
       if ((class >> 8) != PCI_BASE_CLASS_BRIDGE)
        printf("\t!!! Invalid class %04x for header type %02x\n", class, htype);
-      irq = int_pin = min_gnt = max_lat = 0;
+      min_gnt = max_lat = 0;
       break;
     case PCI_HEADER_TYPE_CARDBUS:
       if ((class >> 8) != PCI_BASE_CLASS_BRIDGE)