diff options
author | Linas Vepstas <linas@linas.org> | 2005-11-03 19:54:54 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-01-09 23:30:14 -0500 |
commit | b6495c0c8f100b882d85774f44529519befefba9 (patch) | |
tree | ec38027b7e7e50ffbe843a5333fbf95456bc1cf5 /include | |
parent | 21e464dd7c943c984dcccd9aff8c9f6a5ea920d7 (diff) |
[PATCH] powerpc: Don't continue with PCI Error recovery if slot reset failed.
238-eeh-stop-if-reset_failed.patch
If the firmware is unable to reset the PCI slot for some reason, then
don't attempt any further recovery steps after that point. Instead,
mark the device as permanently failed.
Signed-off-by: Linas Vepstas <linas@austin.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
(cherry picked from e06b942521eb2cdaf232726f45a820d5837acb12 commit)
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-powerpc/ppc-pci.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asm-powerpc/ppc-pci.h b/include/asm-powerpc/ppc-pci.h index 4820b368bf15..1a2db61694f2 100644 --- a/include/asm-powerpc/ppc-pci.h +++ b/include/asm-powerpc/ppc-pci.h | |||
@@ -76,8 +76,10 @@ void eeh_slot_error_detail (struct pci_dn *pdn, int severity); | |||
76 | * does this by asserting the PCI #RST line for 1/8th of | 76 | * does this by asserting the PCI #RST line for 1/8th of |
77 | * a second; this routine will sleep while the adapter is | 77 | * a second; this routine will sleep while the adapter is |
78 | * being reset. | 78 | * being reset. |
79 | * | ||
80 | * Returns a non-zero value if the reset failed. | ||
79 | */ | 81 | */ |
80 | void rtas_set_slot_reset (struct pci_dn *); | 82 | int rtas_set_slot_reset (struct pci_dn *); |
81 | 83 | ||
82 | /** | 84 | /** |
83 | * eeh_restore_bars - Restore device configuration info. | 85 | * eeh_restore_bars - Restore device configuration info. |