powerpc: Fix device-tree matching for Apple U4 bridge
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 29 Sep 2011 05:57:01 +0000 (15:57 +1000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 30 Sep 2011 02:22:40 +0000 (19:22 -0700)
commit16fa42affd484bb500533a7e78e0c72687eddd58
tree17e86844911a2628b0b48bf89975c611a3230e0e
parentb0f84374b6ab0dc9c47975df0b02d46165d558d4
powerpc: Fix device-tree matching for Apple U4 bridge

Apple Quad G5 has some oddity in it's device-tree which causes the new
generic matching code to fail to relate nodes for PCI-E devices below U4
with their respective struct pci_dev.  This breaks graphics on those
machines among others.

This fixes it using a quirk which copies the node pointer from the host
bridge for the root complex, which makes the generic code work for the
children afterward.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/powerpc/platforms/powermac/pci.c