aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2015-02-12 00:25:28 -0500
committerMichael Ellerman <mpe@ellerman.id.au>2015-03-16 03:50:14 -0400
commitfc81de63104e7603e6695225c2573f27aaeb4a28 (patch)
tree8254b24b3c9247a4d97d21f056de5f32b6af553c /arch/powerpc/platforms
parentb962f5a446d8cf4f313a2cef728e7e71b2f20811 (diff)
powerpc/powernv: only call OPAL_ELOG_RESEND if firmware supports it
Otherwise firmware complains: "OPAL: Called with bad token 74 !" as not all OPAL systems have the ability to resend error logs. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com> Acked-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r--arch/powerpc/platforms/powernv/opal-elog.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/powernv/opal-elog.c b/arch/powerpc/platforms/powernv/opal-elog.c
index 518fe95dbf24..38ce757e5e2a 100644
--- a/arch/powerpc/platforms/powernv/opal-elog.c
+++ b/arch/powerpc/platforms/powernv/opal-elog.c
@@ -313,7 +313,8 @@ int __init opal_elog_init(void)
313 } 313 }
314 314
315 /* We are now ready to pull error logs from opal. */ 315 /* We are now ready to pull error logs from opal. */
316 opal_resend_pending_logs(); 316 if (opal_check_token(OPAL_ELOG_RESEND))
317 opal_resend_pending_logs();
317 318
318 return 0; 319 return 0;
319} 320}