]> git.karo-electronics.de Git - karo-tx-linux.git/commit
powerpc/pci: Check devices status property when scanning OF tree
authorSonny Rao <sonnyrao@us.ibm.com>
Mon, 10 May 2010 15:13:41 +0000 (15:13 +0000)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 17 Aug 2012 19:35:11 +0000 (15:35 -0400)
commitf1f8529d1c288ff6487fb76a6947d0804cebdb8f
tree3e92ccecddeee374e36cde2cf0ab3d3580bb523d
parentf10776d80e1f238bd49b12713031908adbf40bf5
powerpc/pci: Check devices status property when scanning OF tree

commit 5b339bdf164d8aee394609768f7e2e4415b0252a upstream.

We ran into an issue where it looks like we're not properly ignoring a
pci device with a non-good status property when we walk the device tree
and instanciate the Linux side PCI devices.

However, the EEH init code does look for the property and disables EEH
on these devices. This leaves us in an inconsistent where we are poking
at a supposedly bad piece of hardware and RTAS will block our config
cycles because EEH isn't enabled anyway.

Signed-of-by: Sonny Rao <sonnyrao@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
arch/powerpc/kernel/pci_of_scan.c