linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Do not skip PCI Express to PCI bridge when scanning OF node
@ 2007-03-07 18:35 Jon Loeliger
  2007-03-07 20:00 ` Kumar Gala
  2007-03-08  9:45 ` Benjamin Herrenschmidt
  0 siblings, 2 replies; 3+ messages in thread
From: Jon Loeliger @ 2007-03-07 18:35 UTC (permalink / raw)
  To: linuxppc-dev@ozlabs.org

From: Haiying Wang <haiying.wang@freescale.com>

Signed-off-by: Zhang Wei <wei.zhang@freescale.com>
Signed-off-by: Haiying Wang <haiying.wang@freescale.com>
Signed-off-by: Jon Loeliger <jdl@freescale.com>
---
 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) {
 #ifdef CONFIG_PPC64
 			ppnode = pci_bus_to_OF_node(pdev->bus);
 #else
-- 
1.5.0.1.213.g509b

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-03-08  9:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-07 18:35 [PATCH] Do not skip PCI Express to PCI bridge when scanning OF node Jon Loeliger
2007-03-07 20:00 ` Kumar Gala
2007-03-08  9:45 ` Benjamin Herrenschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).