powerpc/powernv: Use the "unknown" checkstop type as a fallback
authorRussell Currey <ruscur@russell.cc>
Tue, 15 Mar 2016 10:14:12 +0000 (21:14 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 11 Apr 2016 10:30:40 +0000 (20:30 +1000)
commitf8a25db47ebc11fe228735d916e480d4b2ebe611
tree48a733c9fc45a9b3e6ca228cc2f9caaeafe48491
parentd88e397f12ba0c8c672952c4711d7280525c54ed
powerpc/powernv: Use the "unknown" checkstop type as a fallback

The HMI code knows about three types of errors: CORE, NX and UNKNOWN.
If OPAL were to add a new type, it would not be handled at all since
there is no fallback case.  Instead of explicitly checking for UNKNOWN,
treat any checkstop type without a handler as unknown.

Signed-off-by: Russell Currey <ruscur@russell.cc>
Reviewed-by: Daniel Axtens <dja@axtens.net>
Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/opal-hmi.c