aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel
diff options
context:
space:
mode:
authorGavin Shan <shangw@linux.vnet.ibm.com>2013-06-20 01:20:57 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-06-20 03:05:51 -0400
commit21fd21f59082c2538883a280e7f0e9b374cf6cec (patch)
tree67398c6fe7a52233b90f836fe7ac540e8e5263e9 /arch/powerpc/kernel
parent51fb5f563274de01e47ad2cbdd48018557926fe3 (diff)
powerpc/eeh: EEH post initialization operation
The patch adds new EEH operation post_init. It's used to notify the platform that EEH core has completed the EEH probe. By that, PowerNV platform starts to use the services supplied by EEH functionality. Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r--arch/powerpc/kernel/eeh.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/eeh.c b/arch/powerpc/kernel/eeh.c
index c865c5f54b18..a29cf473fadf 100644
--- a/arch/powerpc/kernel/eeh.c
+++ b/arch/powerpc/kernel/eeh.c
@@ -720,6 +720,17 @@ int __init eeh_init(void)
720 return -EINVAL; 720 return -EINVAL;
721 } 721 }
722 722
723 /*
724 * Call platform post-initialization. Actually, It's good chance
725 * to inform platform that EEH is ready to supply service if the
726 * I/O cache stuff has been built up.
727 */
728 if (eeh_ops->post_init) {
729 ret = eeh_ops->post_init();
730 if (ret)
731 return ret;
732 }
733
723 if (eeh_subsystem_enabled) 734 if (eeh_subsystem_enabled)
724 pr_info("EEH: PCI Enhanced I/O Error Handling Enabled\n"); 735 pr_info("EEH: PCI Enhanced I/O Error Handling Enabled\n");
725 else 736 else