aboutsummaryrefslogtreecommitdiff
path: root/external/opal-prd/opal-prd.c
diff options
context:
space:
mode:
authorNeelesh Gupta <neelegup@linux.vnet.ibm.com>2015-09-07 22:56:05 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-09-08 16:22:41 +1000
commit2653060ab64523407c23c6c637af890e4c251ec0 (patch)
tree2d2dee9ba0dfa5db3a05d607c0880af2f042d820 /external/opal-prd/opal-prd.c
parent7ba8414262c777bb277ef04bf36b11e9b5d8be58 (diff)
downloadskiboot-2653060ab64523407c23c6c637af890e4c251ec0.zip
skiboot-2653060ab64523407c23c6c637af890e4c251ec0.tar.gz
skiboot-2653060ab64523407c23c6c637af890e4c251ec0.tar.bz2
external/opal-prd: move hservices_init after the ipmi and pnor init
The IPMI device and pnor should be ready with the devices present and module loaded before the host service interfaces. So, reorder the initialization code in the daemon. Suggested-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Neelesh Gupta <neelegup@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'external/opal-prd/opal-prd.c')
-rw-r--r--external/opal-prd/opal-prd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/external/opal-prd/opal-prd.c b/external/opal-prd/opal-prd.c
index 520aef9..1e7cd23 100644
--- a/external/opal-prd/opal-prd.c
+++ b/external/opal-prd/opal-prd.c
@@ -1545,10 +1545,6 @@ static int run_prd_daemon(struct opal_prd_ctx *ctx)
fixup_hinterface_table();
- pr_debug("HBRT: calling hservices_init");
- hservices_init(ctx, ctx->code_addr);
- pr_debug("HBRT: hservices_init done");
-
if (ctx->pnor.path) {
rc = pnor_init(&ctx->pnor);
if (rc) {
@@ -1559,6 +1555,10 @@ static int run_prd_daemon(struct opal_prd_ctx *ctx)
ipmi_init(ctx);
+ pr_debug("HBRT: calling hservices_init");
+ hservices_init(ctx, ctx->code_addr);
+ pr_debug("HBRT: hservices_init done");
+
/* Test a scom */
if (ctx->debug) {
uint64_t val;