powerpc/powernv: handle OPAL_SUCCESS return in opal_sensor_read
authorCédric Le Goater <clg@fr.ibm.com>
Mon, 30 Mar 2015 10:06:10 +0000 (12:06 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 31 Mar 2015 03:50:35 +0000 (14:50 +1100)
commit6bc08d03e745a0b369bd28294b969e4fdaf7be9f
tree66d98175cff751178f4c608546bdf13b9547b1e7
parente3c5c2e0bc857c7cbdb81f35a6b90236c5f330e9
powerpc/powernv: handle OPAL_SUCCESS return in opal_sensor_read

Currently, when a sensor value is read, the kernel calls OPAL, which in
turn builds a message for the FSP, and waits for a message back.

The new device tree for OPAL sensors [1] adds new sensors that can be
read synchronously (core temperatures for instance) and that don't need
to wait for a response.

This patch modifies the opal call to accept an OPAL_SUCCESS return value
and cover the case above.

[1] https://lists.ozlabs.org/pipermail/skiboot/2015-March/000639.html

Signed-off-by: Cédric Le Goater <clg@fr.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/opal-sensor.c
This page took 0.025216 seconds and 5 git commands to generate.