[PATCH] Do not skip PCI Express to PCI bridge when scanning OF node
Benjamin Herrenschmidt
benh at kernel.crashing.org
Thu Mar 8 20:45:32 EST 2007
On Wed, 2007-03-07 at 12:35 -0600, Jon Loeliger wrote:
> From: Haiying Wang <haiying.wang at freescale.com>
>
> Signed-off-by: Zhang Wei <wei.zhang at freescale.com>
> Signed-off-by: Haiying Wang <haiying.wang at freescale.com>
> Signed-off-by: Jon Loeliger <jdl at 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) {
No way. There is nothing "special" per spec with devfn == 0.
What exactly is that supposed to do ?
Ben.
More information about the Linuxppc-dev
mailing list