]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4f989aa25cd8c52fab886588805d6b057c401bba
tree17e86844911a2628b0b48bf89975c611a3230e0e
parent99f6830b1ae7559f0cc9ae2f9f2cbfb0e637780f
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