From: Linas Vepstas Date: Thu, 15 Nov 2007 18:56:23 +0000 (+1100) Subject: [POWERPC] EEH: Work with device endpoint, always X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=307d46e83291ef58b2c3b6d33b7ec6dd163d58b9;p=openwrt%2Fstaging%2Fblogic.git [POWERPC] EEH: Work with device endpoint, always Perform all error checking at the "partitonable endpoint" of the device. Signed-off-by: Linas Vepstas Signed-off-by: Paul Mackerras --- diff --git a/arch/powerpc/platforms/pseries/eeh.c b/arch/powerpc/platforms/pseries/eeh.c index fb3d636e088b..42a30b6628a9 100644 --- a/arch/powerpc/platforms/pseries/eeh.c +++ b/arch/powerpc/platforms/pseries/eeh.c @@ -480,6 +480,7 @@ int eeh_dn_check_failure(struct device_node *dn, struct pci_dev *dev) no_dn++; return 0; } + dn = find_device_pe(dn); pdn = PCI_DN(dn); /* Access to IO BARs might get this far and still not want checking. */