]> mj.ucw.cz Git - pciutils.git/commitdiff
Allow header type 1 for any bridge.
authorMartin Mares <mj@ucw.cz>
Fri, 28 May 2004 11:48:34 +0000 (11:48 +0000)
committerMartin Mares <mj@ucw.cz>
Fri, 5 May 2006 12:18:19 +0000 (14:18 +0200)
git-archimport-id: mj@ucw.cz--public/pciutils--main--2.2--patch-42

ChangeLog
lspci.c

index ba719ea4b7f5918852dc3c18687ee174c61dc7ac..7411ed38af3148e47fa895266be146ecd63ac68d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2004-05-28  Martin Mares  <mj@ucw.cz>
 
+       * lspci.c (show_verbose): Header type 1 is probably legal for all
+       types of bridges, not only for PCI-to-PCI bridges.
+
        * lspci.c (format_agp_rate): Write "x16", not "x@".
        (show_agp): rate[] could overflow.
        Bugs reported by Jakub Bogusz <qboosh@pld-linux.org>.
diff --git a/lspci.c b/lspci.c
index af94eeb0aa2bb2b5c042142597204f9ef3a99811..8374788197413cb6a3943c290c9ad216ae8e8824 100644 (file)
--- a/lspci.c
+++ b/lspci.c
@@ -1181,7 +1181,7 @@ show_verbose(struct device *d)
       subsys_d = get_conf_word(d, PCI_SUBSYSTEM_ID);
       break;
     case PCI_HEADER_TYPE_BRIDGE:
-      if (class != PCI_CLASS_BRIDGE_PCI)
+      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;
       subsys_v = subsys_d = 0;