Thread (3 messages) flat view 3 messages, 3 authors, 2007-03-08

Re: [PATCH] Do not skip PCI Express to PCI bridge when scanning OF node

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2007-03-08 09:45:44

On Wed, 2007-03-07 at 12:35 -0600, Jon Loeliger wrote:
quoted hunk ↗ jump to hunk
From: Haiying Wang <redacted>

Signed-off-by: Zhang Wei <redacted>
Signed-off-by: Haiying Wang <redacted>
Signed-off-by: Jon Loeliger <redacted>
---
 arch/powerpc/kernel/prom_parse.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/powerpc/kernel/prom_parse.c b/arch/powerpc/kernel/prom_parse.c
index ea6fd55..0809977 100644
--- a/arch/powerpc/kernel/prom_parse.c
+++ b/arch/powerpc/kernel/prom_parse.c
@@ -267,7 +267,7 @@ int of_irq_map_pci(struct pci_dev *pdev, struct of_irq *out_irq)
 		ppdev = pdev->bus->self;
 
 		/* Ouch, it's a host bridge... */
-		if (ppdev == NULL) {
+		if (ppdev == NULL || ppdev->devfn == 0) {
No way. There is nothing "special" per spec with devfn == 0.

What exactly is that supposed to do ?

Ben.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help