drm/nv40/therm: reset temperature sensor on init
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Sun, 3 Feb 2013 18:12:49 +0000 (19:12 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 20 Feb 2013 06:00:42 +0000 (16:00 +1000)
commitd0a5191dcf5f37cf0942c4b65fa4a2c975631c0b
treecc56c2d12cb9efbb136a230310d6d4ab7fae599d
parent134fc0327552f3ebee2cdcb50b956a31029661c0
drm/nv40/therm: reset temperature sensor on init

Current uninitialized sensor detection does not work for me on nv4b and
sensor returns crazy values (>190°C). It stabilises later, but it's too
late - therm code shutdowns the machine...

Let's just reset it on init.

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Acked-by: Martin Peres <martin.peres@labri.fr>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/therm/nv40.c