aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/pseries/eeh.c
diff options
context:
space:
mode:
authorGavin Shan <shangw@linux.vnet.ibm.com>2012-02-27 15:03:54 -0500
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2012-03-08 19:09:36 -0500
commite2af155c2aea0e705ed4ef33aedc25e50a788be1 (patch)
treeedb7cbe707163defd874a13c1a1f3aa97100da35 /arch/powerpc/platforms/pseries/eeh.c
parentaa1e6374ae11788752535ae0c8c6395c9cad1393 (diff)
powerpc/eeh: pseries platform EEH initialization
The platform specific EEH operations have been abstracted by struct eeh_ops. The individual platroms, including pSeries, needs doing necessary initialization before the platform dependent EEH operations work properly. The patch is addressing that and do necessary platform initialization for pSeries platform. More specificly, it will figure out the tokens of EEH related RTAS calls. Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/pseries/eeh.c')
-rw-r--r--arch/powerpc/platforms/pseries/eeh.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/pseries/eeh.c b/arch/powerpc/platforms/pseries/eeh.c
index b0e3fb0b32a5..bb6de6c97911 100644
--- a/arch/powerpc/platforms/pseries/eeh.c
+++ b/arch/powerpc/platforms/pseries/eeh.c
@@ -1279,6 +1279,18 @@ void __init eeh_init(void)
1279{ 1279{
1280 struct device_node *phb, *np; 1280 struct device_node *phb, *np;
1281 struct eeh_early_enable_info info; 1281 struct eeh_early_enable_info info;
1282 int ret;
1283
1284 /* call platform initialization function */
1285 if (!eeh_ops) {
1286 pr_warning("%s: Platform EEH operation not found\n",
1287 __func__);
1288 return;
1289 } else if ((ret = eeh_ops->init())) {
1290 pr_warning("%s: Failed to call platform init function (%d)\n",
1291 __func__, ret);
1292 return;
1293 }
1282 1294
1283 raw_spin_lock_init(&confirm_error_lock); 1295 raw_spin_lock_init(&confirm_error_lock);
1284 spin_lock_init(&slot_errbuf_lock); 1296 spin_lock_init(&slot_errbuf_lock);