diff options
author | Paul Mackerras <paulus@samba.org> | 2005-11-29 01:17:02 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-01-09 23:32:31 -0500 |
commit | 18eb3b398d92028e6f09f0423aa4e2a7b1096db3 (patch) | |
tree | c9065b1616b97a6c9514fc7c641b96e42b85cd89 /arch/powerpc/platforms | |
parent | 257ffc64a6c22621ecb0371b7f10d5b40b74c878 (diff) |
powerpc: Fix up some compile errors in the PCI error recovery code
<asm/systemcfg.h> is gone now, and the PCI error recovery constants
in include/linux/pci.h changed their names in the process of getting
accepted.
Signed-off-by: Paul Mackerras <paulus@samba.org>
(cherry picked from 5a2516156c591fc3d2059fbd93f97e15eb6010d6 commit)
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r-- | arch/powerpc/platforms/pseries/eeh_cache.c | 1 | ||||
-rw-r--r-- | arch/powerpc/platforms/pseries/eeh_driver.c | 18 |
2 files changed, 9 insertions, 10 deletions
diff --git a/arch/powerpc/platforms/pseries/eeh_cache.c b/arch/powerpc/platforms/pseries/eeh_cache.c index 71b2187581a3..d4a402c5866c 100644 --- a/arch/powerpc/platforms/pseries/eeh_cache.c +++ b/arch/powerpc/platforms/pseries/eeh_cache.c | |||
@@ -26,7 +26,6 @@ | |||
26 | #include <asm/atomic.h> | 26 | #include <asm/atomic.h> |
27 | #include <asm/pci-bridge.h> | 27 | #include <asm/pci-bridge.h> |
28 | #include <asm/ppc-pci.h> | 28 | #include <asm/ppc-pci.h> |
29 | #include <asm/systemcfg.h> | ||
30 | 29 | ||
31 | #undef DEBUG | 30 | #undef DEBUG |
32 | 31 | ||
diff --git a/arch/powerpc/platforms/pseries/eeh_driver.c b/arch/powerpc/platforms/pseries/eeh_driver.c index 1c97c89597fb..6373372932ba 100644 --- a/arch/powerpc/platforms/pseries/eeh_driver.c +++ b/arch/powerpc/platforms/pseries/eeh_driver.c | |||
@@ -84,7 +84,7 @@ static int irq_in_use(unsigned int irq) | |||
84 | 84 | ||
85 | static void eeh_report_error(struct pci_dev *dev, void *userdata) | 85 | static void eeh_report_error(struct pci_dev *dev, void *userdata) |
86 | { | 86 | { |
87 | enum pcierr_result rc, *res = userdata; | 87 | enum pci_ers_result rc, *res = userdata; |
88 | struct pci_driver *driver = dev->driver; | 88 | struct pci_driver *driver = dev->driver; |
89 | 89 | ||
90 | dev->error_state = pci_channel_io_frozen; | 90 | dev->error_state = pci_channel_io_frozen; |
@@ -103,10 +103,10 @@ static void eeh_report_error(struct pci_dev *dev, void *userdata) | |||
103 | return; | 103 | return; |
104 | 104 | ||
105 | rc = driver->err_handler->error_detected (dev, pci_channel_io_frozen); | 105 | rc = driver->err_handler->error_detected (dev, pci_channel_io_frozen); |
106 | if (*res == PCIERR_RESULT_NONE) *res = rc; | 106 | if (*res == PCI_ERS_RESULT_NONE) *res = rc; |
107 | if (*res == PCIERR_RESULT_NEED_RESET) return; | 107 | if (*res == PCI_ERS_RESULT_NEED_RESET) return; |
108 | if (*res == PCIERR_RESULT_DISCONNECT && | 108 | if (*res == PCI_ERS_RESULT_DISCONNECT && |
109 | rc == PCIERR_RESULT_NEED_RESET) *res = rc; | 109 | rc == PCI_ERS_RESULT_NEED_RESET) *res = rc; |
110 | } | 110 | } |
111 | 111 | ||
112 | /** eeh_report_reset -- tell this device that the pci slot | 112 | /** eeh_report_reset -- tell this device that the pci slot |
@@ -256,6 +256,7 @@ void handle_eeh_events (struct eeh_event *event) | |||
256 | struct pci_dn *frozen_pdn; | 256 | struct pci_dn *frozen_pdn; |
257 | struct pci_bus *frozen_bus; | 257 | struct pci_bus *frozen_bus; |
258 | int rc = 0; | 258 | int rc = 0; |
259 | enum pci_ers_result result = PCI_ERS_RESULT_NONE; | ||
259 | 260 | ||
260 | frozen_dn = find_device_pe(event->dn); | 261 | frozen_dn = find_device_pe(event->dn); |
261 | frozen_bus = pcibios_find_pci_bus(frozen_dn); | 262 | frozen_bus = pcibios_find_pci_bus(frozen_dn); |
@@ -315,21 +316,20 @@ void handle_eeh_events (struct eeh_event *event) | |||
315 | * status ... if any child can't handle the reset, then the entire | 316 | * status ... if any child can't handle the reset, then the entire |
316 | * slot is dlpar removed and added. | 317 | * slot is dlpar removed and added. |
317 | */ | 318 | */ |
318 | enum pcierr_result result = PCIERR_RESULT_NONE; | ||
319 | pci_walk_bus(frozen_bus, eeh_report_error, &result); | 319 | pci_walk_bus(frozen_bus, eeh_report_error, &result); |
320 | 320 | ||
321 | /* If all device drivers were EEH-unaware, then shut | 321 | /* If all device drivers were EEH-unaware, then shut |
322 | * down all of the device drivers, and hope they | 322 | * down all of the device drivers, and hope they |
323 | * go down willingly, without panicing the system. | 323 | * go down willingly, without panicing the system. |
324 | */ | 324 | */ |
325 | if (result == PCIERR_RESULT_NONE) { | 325 | if (result == PCI_ERS_RESULT_NONE) { |
326 | rc = eeh_reset_device(frozen_pdn, frozen_bus); | 326 | rc = eeh_reset_device(frozen_pdn, frozen_bus); |
327 | if (rc) | 327 | if (rc) |
328 | goto hard_fail; | 328 | goto hard_fail; |
329 | } | 329 | } |
330 | 330 | ||
331 | /* If any device called out for a reset, then reset the slot */ | 331 | /* If any device called out for a reset, then reset the slot */ |
332 | if (result == PCIERR_RESULT_NEED_RESET) { | 332 | if (result == PCI_ERS_RESULT_NEED_RESET) { |
333 | rc = eeh_reset_device(frozen_pdn, NULL); | 333 | rc = eeh_reset_device(frozen_pdn, NULL); |
334 | if (rc) | 334 | if (rc) |
335 | goto hard_fail; | 335 | goto hard_fail; |
@@ -337,7 +337,7 @@ void handle_eeh_events (struct eeh_event *event) | |||
337 | } | 337 | } |
338 | 338 | ||
339 | /* If all devices reported they can proceed, the re-enable PIO */ | 339 | /* If all devices reported they can proceed, the re-enable PIO */ |
340 | if (result == PCIERR_RESULT_CAN_RECOVER) { | 340 | if (result == PCI_ERS_RESULT_CAN_RECOVER) { |
341 | /* XXX Not supported; we brute-force reset the device */ | 341 | /* XXX Not supported; we brute-force reset the device */ |
342 | rc = eeh_reset_device(frozen_pdn, NULL); | 342 | rc = eeh_reset_device(frozen_pdn, NULL); |
343 | if (rc) | 343 | if (rc) |