[patch 2.5-bk] PCI 1/3: transparent bridge detection fix

Ivan Kokshaysky (ink@jurassic.park.msu.ru)
Wed, 6 Nov 2002 21:05:55 +0300


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
+++ linux/drivers/pci/probe.c Wed Nov 6 18:16:52 2002
@@ -384,7 +384,7 @@ int pci_setup_device(struct pci_dev * de
/* 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
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/