powerpc/powernv: convert codes returned by OPAL calls
authorCédric Le Goater <clg@fr.ibm.com>
Mon, 30 Mar 2015 10:06:09 +0000 (12:06 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 31 Mar 2015 03:50:33 +0000 (14:50 +1100)
commite3c5c2e0bc857c7cbdb81f35a6b90236c5f330e9
treebf62f0f6a535426d53b389a2e1aab229461ea302
parentacdb66857fb9a713c93bb3e6edba5ee478ba0678
powerpc/powernv: convert codes returned by OPAL calls

OPAL has its own list of return codes. The patch provides a translation
of such codes in errnos for the opal_sensor_read call, and possibly
others if needed.

Signed-off-by: Cédric Le Goater <clg@fr.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/opal.h
arch/powerpc/platforms/powernv/opal-sensor.c
arch/powerpc/platforms/powernv/opal.c