OSDN Git Service

powerpc/eeh: Don't collect PCI-CFG data on PHB
authorGavin Shan <shangw@linux.vnet.ibm.com>
Thu, 27 Jun 2013 05:46:42 +0000 (13:46 +0800)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 1 Jul 2013 01:10:31 +0000 (11:10 +1000)
commitc35ae1796bd4865bad322645a7edb92d223dfb51
tree0c8eb255dc4b996f4b17813ed287ba4a1c189e22
parent090b9284d72561644d17a6e568d29c9e472c9865
powerpc/eeh: Don't collect PCI-CFG data on PHB

When the PHB is fenced or dead, it's pointless to collect the data
from PCI config space of subordinate PCI devices since it should
return 0xFF's. The patch also fixes overwritten buffer while getting
PCI config data.

Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/eeh.c