From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id 2DF38DDE9F for ; Thu, 8 Mar 2007 20:45:44 +1100 (EST) Subject: Re: [PATCH] Do not skip PCI Express to PCI bridge when scanning OF node From: Benjamin Herrenschmidt To: Jon Loeliger In-Reply-To: <1173292541.23776.125.camel@ld0161-tx32> References: <1173292541.23776.125.camel@ld0161-tx32> Content-Type: text/plain Date: Thu, 08 Mar 2007 10:45:32 +0100 Message-Id: <1173347132.8635.15.camel@localhost.localdomain> Mime-Version: 1.0 Cc: "linuxppc-dev@ozlabs.org" List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, 2007-03-07 at 12:35 -0600, Jon Loeliger wrote: > From: Haiying Wang > > Signed-off-by: Zhang Wei > Signed-off-by: Haiying Wang > Signed-off-by: Jon Loeliger > --- > 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.