From: Linas Vepstas Date: Thu, 15 Nov 2007 18:57:27 +0000 (+1100) Subject: [POWERPC] EEH: Be careful when identifying "empty" slots. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c9b65a7da694bd774398283b9bd860f7e3234432;p=openwrt%2Fstaging%2Fblogic.git [POWERPC] EEH: Be careful when identifying "empty" slots. If an "empty" slot is failing, make sure its a permanent failure; else process the error normally. 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 42a30b6628a9..aa14a8559edb 100644 --- a/arch/powerpc/platforms/pseries/eeh.c +++ b/arch/powerpc/platforms/pseries/eeh.c @@ -546,7 +546,7 @@ int eeh_dn_check_failure(struct device_node *dn, struct pci_dev *dev) /* Note that config-io to empty slots may fail; * they are empty when they don't have children. */ - if ((rets[0] == 5) && (dn->child == NULL)) { + if ((rets[0] == 5) && (rets[2] == 0) && (dn->child == NULL)) { false_positives++; pdn->eeh_false_positives ++; rc = 0;