diff options
author | Gavin Shan <shangw@linux.vnet.ibm.com> | 2012-09-07 18:44:19 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-09-09 19:35:43 -0400 |
commit | 9b3c76f08122f5efdbe4992a64b8478cc92dd983 (patch) | |
tree | c5e668d39e96971e404c16a155e6a40cd5f62400 /arch/powerpc/include/asm | |
parent | 120dc496617eb7105d577c6041cbc052ffb1d8c7 (diff) |
powerpc/eeh: Handle EEH error based on PE
The patch reworks the current implementation so that the eeh errors
will be handled basing on PE instead of eeh device.
Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm')
-rw-r--r-- | arch/powerpc/include/asm/eeh.h | 1 | ||||
-rw-r--r-- | arch/powerpc/include/asm/eeh_event.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/eeh.h b/arch/powerpc/include/asm/eeh.h index 629fb27c093e..d25a693595f8 100644 --- a/arch/powerpc/include/asm/eeh.h +++ b/arch/powerpc/include/asm/eeh.h | |||
@@ -174,6 +174,7 @@ int eeh_rmv_from_parent_pe(struct eeh_dev *edev); | |||
174 | void *eeh_pe_dev_traverse(struct eeh_pe *root, | 174 | void *eeh_pe_dev_traverse(struct eeh_pe *root, |
175 | eeh_traverse_func fn, void *flag); | 175 | eeh_traverse_func fn, void *flag); |
176 | void eeh_pe_restore_bars(struct eeh_pe *pe); | 176 | void eeh_pe_restore_bars(struct eeh_pe *pe); |
177 | struct pci_bus *eeh_pe_bus_get(struct eeh_pe *pe); | ||
177 | 178 | ||
178 | void * __devinit eeh_dev_init(struct device_node *dn, void *data); | 179 | void * __devinit eeh_dev_init(struct device_node *dn, void *data); |
179 | void __devinit eeh_dev_phb_init_dynamic(struct pci_controller *phb); | 180 | void __devinit eeh_dev_phb_init_dynamic(struct pci_controller *phb); |
diff --git a/arch/powerpc/include/asm/eeh_event.h b/arch/powerpc/include/asm/eeh_event.h index dc722b58216c..de67d830151b 100644 --- a/arch/powerpc/include/asm/eeh_event.h +++ b/arch/powerpc/include/asm/eeh_event.h | |||
@@ -32,7 +32,7 @@ struct eeh_event { | |||
32 | }; | 32 | }; |
33 | 33 | ||
34 | int eeh_send_failure_event(struct eeh_pe *pe); | 34 | int eeh_send_failure_event(struct eeh_pe *pe); |
35 | struct eeh_dev *handle_eeh_events(struct eeh_event *); | 35 | void eeh_handle_event(struct eeh_pe *pe); |
36 | 36 | ||
37 | #endif /* __KERNEL__ */ | 37 | #endif /* __KERNEL__ */ |
38 | #endif /* ASM_POWERPC_EEH_EVENT_H */ | 38 | #endif /* ASM_POWERPC_EEH_EVENT_H */ |