mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch 2.5-bk] PCI 1/3: transparent bridge detection fix
@ 2002-11-06 18:05 Ivan Kokshaysky
  0 siblings, 0 replies; only message in thread
From: Ivan Kokshaysky @ 2002-11-06 18:05 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel

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;
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-11-06 17:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-06 18:05 [patch 2.5-bk] PCI 1/3: transparent bridge detection fix Ivan Kokshaysky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®