PCI 1/3: transparent bridge detection fix

PCI 1/3: transparent bridge detection fix

Post by Ivan Kokshaysk » Thu, 07 Nov 2002 20:10:19



The detection of subtractive decoding bridges is broken: `class' variable
doesn't contain ProgIf byte at this point, I should check `dev->class'
instead.

Ivan.

--- 2.5-bk/drivers/pci/probe.c  Wed Nov  6 17:38:46 2002

                /* The PCI-to-PCI bridge spec requires that subtractive
                   decoding (i.e. transparent) bridge must have programming
                   interface code of 0x01. */
-               dev->transparent = ((class & 0xff) == 1);
+               dev->transparent = ((dev->class & 0xff) == 1);
                pci_read_bases(dev, 2, PCI_ROM_ADDRESS1);
                break;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/