summaryrefslogtreecommitdiff
path: root/drivers/thermal/da9062-thermal.c
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@free-electrons.com>2017-12-22 19:14:12 +0300
committerEduardo Valentin <edubezval@gmail.com>2018-01-02 00:25:19 +0300
commit64163681a25e00182f727caa3a57ffe8d70f1022 (patch)
tree9775cb18fdacc6fd65e2d309fe94c3fa65dae5d0 /drivers/thermal/da9062-thermal.c
parent8c0b888f6610d0ebbc4bdfb52d2fef9f4a11adfc (diff)
downloadlinux-64163681a25e00182f727caa3a57ffe8d70f1022.tar.xz
thermal: armada: Wait sensors validity before exiting the init callback
The thermal core will check for sensors validity right after the initialization callback has returned. As the initialization routine make a reset, the sensors are not ready immediately and the core spawns an error in the dmesg. Avoid this annoying situation by polling on the validity bit before exiting from these routines. This also avoid the use of blind sleeps. Suggested-by: David Sniatkiwicz <davidsn@marvell.com> Signed-off-by: Miquel Raynal <miquel.raynal@free-electrons.com> Reviewed-by: Gregory CLEMENT <gregory.clement@free-electrons.com> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'drivers/thermal/da9062-thermal.c')
0 files changed, 0 insertions, 0 deletions