diff mbox

lspci: Decode Interrupt Pin and Interrupt Line for PCI-PCI bridges

Message ID 20140308002617.1013.98008.stgit@bhelgaas-glaptop.roam.corp.google.com (mailing list archive)
State New, archived
Delegated to: Bjorn Helgaas
Headers show

Commit Message

Bjorn Helgaas March 8, 2014, 12:26 a.m. UTC
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 |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


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

Comments

Martin Mareš Nov. 1, 2014, 3:23 p.m. UTC | #1
Hi!

> Bridges can implement interrupt pins, so decode this information.  See
> PCI-to-PCI Bridge spec r1.2, sec 3.2.5.17.

Thanks, applied.

				Have a nice fortnight
diff mbox

Patch

diff --git a/lspci.c b/lspci.c
index dbba678..dbecbe8 100644
--- a/lspci.c
+++ b/lspci.c
@@ -666,7 +666,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)