]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: Do not log an error if thermal_zone_get_temp returns -EAGAIN
authorHans de Goede <hdegoede@redhat.com>
Sat, 21 Mar 2015 14:02:55 +0000 (15:02 +0100)
committerEduardo Valentin <edubezval@gmail.com>
Tue, 7 Apr 2015 20:11:29 +0000 (13:11 -0700)
commit4469554bbc3a2b09393833c9564d225ef764fa81
tree9c521532a0c0647fe29e10cad1f6bc2abdc5b8d2
parent29b749191c29e42dfd6b4380fed27253573888ae
thermal: Do not log an error if thermal_zone_get_temp returns -EAGAIN

Some temperature sensors only get updated every few seconds and while
waiting for the first irq reporting a (new) temperature to happen there
get_temp operand will return -EAGAIN as it does not have any data to report
yet.

Not logging an error in this case avoids messages like these from showing
up in dmesg on affected systems:

[    1.219353] thermal thermal_zone0: failed to read out thermal zone 0
[    2.015433] thermal thermal_zone0: failed to read out thermal zone 0
[    2.416737] thermal thermal_zone0: failed to read out thermal zone 0

Reviewed-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/thermal_core.c