Skip to content

Commit

Permalink
[POWERPC] EEH: Be careful when identifying "empty" slots.
Browse files Browse the repository at this point in the history
If an "empty" slot is failing, make sure its a permanent failure;
else process the error normally.

Signed-off-by: Linas Vepstas <linas@austin.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Linas Vepstas authored and Paul Mackerras committed Dec 3, 2007
1 parent 307d46e commit c9b65a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/pseries/eeh.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c9b65a7

Please sign in to comment.