Commit 3a405258 authored by Martin Peres's avatar Martin Peres Committed by Ben Skeggs

drm/nouveau/therm/nv84+: do not expose non-calibrated internal temp sensor

Signed-off-by: default avatarMartin Peres <martin.peres@free.fr>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent c5b4865e
...@@ -33,7 +33,12 @@ struct nv84_therm_priv { ...@@ -33,7 +33,12 @@ struct nv84_therm_priv {
int int
nv84_temp_get(struct nouveau_therm *therm) nv84_temp_get(struct nouveau_therm *therm)
{ {
struct nouveau_fuse *fuse = nouveau_fuse(therm);
if (nv_ro32(fuse, 0x1a8) == 1)
return nv_rd32(therm, 0x20400); return nv_rd32(therm, 0x20400);
else
return -ENODEV;
} }
void void
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment