Skip to contentSkip to conversation

PCI 1/3: transparent bridge detection fix

PATCH New Ivan Kokshaysky 1 participant 1 message Nov 6, 2002 PCI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PCI 1/3: transparent bridge detection fix

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.

drivers/pci/probe.c +1 -1
@@ -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;