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

From: Ivan Kokshaysky (ink@jurassic.park.msu.ru)
Date: Wed Nov 06 2002 - 13:05:55 EST


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/



This archive was generated by hypermail 2b29 : Thu Nov 07 2002 - 22:00:44 EST