Commit fc81de63 authored by Stewart Smith's avatar Stewart Smith Committed by Michael Ellerman
Browse files

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: default avatarStewart Smith <stewart@linux.vnet.ibm.com>
Acked-by: default avatarVasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent b962f5a4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -313,6 +313,7 @@ int __init opal_elog_init(void)
	}

	/* We are now ready to pull error logs from opal. */
	if (opal_check_token(OPAL_ELOG_RESEND))
		opal_resend_pending_logs();

	return 0;