summaryrefslogtreecommitdiff
path: root/arch/powerpc/platforms/pseries/eeh_cache.c
diff options
context:
space:
mode:
authorLinas Vepstas <linas@austin.ibm.com>2007-05-24 03:16:46 +1000
committerPaul Mackerras <paulus@samba.org>2007-06-14 22:29:55 +1000
commite1d04c9769398ae7df8c7ca2681b25f540b719d5 (patch)
tree78ae5fd5814571870e6aeb75c875ffdb84e62748 /arch/powerpc/platforms/pseries/eeh_cache.c
parentc2e221e8b93ea54da85d9b5413a2eff9f4a653f7 (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_cache.c')
-rw-r--r--arch/powerpc/platforms/pseries/eeh_cache.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/pseries/eeh_cache.c b/arch/powerpc/platforms/pseries/eeh_cache.c
index f2bae04424f8..60abea2d257c 100644
--- a/arch/powerpc/platforms/pseries/eeh_cache.c
+++ b/arch/powerpc/platforms/pseries/eeh_cache.c
@@ -295,6 +295,8 @@ void __init pci_addr_cache_build(void)
continue;
pci_dev_get (dev); /* matching put is in eeh_remove_device() */
PCI_DN(dn)->pcidev = dev;
+
+ eeh_sysfs_add_device(dev);
}
#ifdef DEBUG