diff options
author | Linas Vepstas <linas@austin.ibm.com> | 2007-05-23 13:16:46 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-06-14 08:29:55 -0400 |
commit | e1d04c9769398ae7df8c7ca2681b25f540b719d5 (patch) | |
tree | 78ae5fd5814571870e6aeb75c875ffdb84e62748 /arch/powerpc/platforms/pseries/eeh.c | |
parent | c2e221e8b93ea54da85d9b5413a2eff9f4a653f7 (diff) |
[POWERPC] Add EEH sysfs blinkenlights
Add sysfs blinkenlights for EEH statistics. Shuffle the
eeh_add_device_tree() call so that it appears in the correct
sequence.
Signed-off-by: Linas Vepstas <linas@austin.ibm.com>
----
arch/powerpc/platforms/pseries/Makefile | 2
arch/powerpc/platforms/pseries/eeh.c | 4 +
arch/powerpc/platforms/pseries/eeh_cache.c | 2
arch/powerpc/platforms/pseries/eeh_sysfs.c | 84 +++++++++++++++++++++++++++++
arch/powerpc/platforms/pseries/pci_dlpar.c | 7 +-
include/asm-powerpc/ppc-pci.h | 3 +
6 files changed, 98 insertions(+), 4 deletions(-)
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/pseries/eeh.c')
-rw-r--r-- | arch/powerpc/platforms/pseries/eeh.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/pseries/eeh.c b/arch/powerpc/platforms/pseries/eeh.c index 5f3e6d8659fe..d284a58c5b5f 100644 --- a/arch/powerpc/platforms/pseries/eeh.c +++ b/arch/powerpc/platforms/pseries/eeh.c | |||
@@ -1139,7 +1139,8 @@ static void eeh_add_device_late(struct pci_dev *dev) | |||
1139 | pdn = PCI_DN(dn); | 1139 | pdn = PCI_DN(dn); |
1140 | pdn->pcidev = dev; | 1140 | pdn->pcidev = dev; |
1141 | 1141 | ||
1142 | pci_addr_cache_insert_device (dev); | 1142 | pci_addr_cache_insert_device(dev); |
1143 | eeh_sysfs_add_device(dev); | ||
1143 | } | 1144 | } |
1144 | 1145 | ||
1145 | void eeh_add_device_tree_late(struct pci_bus *bus) | 1146 | void eeh_add_device_tree_late(struct pci_bus *bus) |
@@ -1178,6 +1179,7 @@ static void eeh_remove_device(struct pci_dev *dev) | |||
1178 | printk(KERN_DEBUG "EEH: remove device %s\n", pci_name(dev)); | 1179 | printk(KERN_DEBUG "EEH: remove device %s\n", pci_name(dev)); |
1179 | #endif | 1180 | #endif |
1180 | pci_addr_cache_remove_device(dev); | 1181 | pci_addr_cache_remove_device(dev); |
1182 | eeh_sysfs_remove_device(dev); | ||
1181 | 1183 | ||
1182 | dn = pci_device_to_OF_node(dev); | 1184 | dn = pci_device_to_OF_node(dev); |
1183 | if (PCI_DN(dn)->pcidev) { | 1185 | if (PCI_DN(dn)->pcidev) { |