[PATCH] pci_dev to device_node fix

Benjamin Herrenschmidt benh at kernel.crashing.org
Sat Mar 6 10:37:34 EST 2004

> The problem is, what do you set it to.  A PHB doesn't have a devfn.  You
> can't set it to -1, because there are sections of the code that will
> mask the devfn w/ 0xff and cause the same problem if there is a bridge
> is at devfn 0xff on a particular bus.  The only clean way is to add an
> extra field in to note that this device_node is a PHB.  That way it can
> ignore the devfn.

And how do you deal with device nodes that aren't PCI ?


** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/

More information about the Linuxppc64-dev mailing list