mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 03:20:25 -04:00
drm/nouveau/therm/nv84+: do not expose non-calibrated internal temp sensor
Signed-off-by: Martin Peres <martin.peres@free.fr> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
@@ -33,7 +33,12 @@ struct nv84_therm_priv {
|
||||
int
|
||||
nv84_temp_get(struct nouveau_therm *therm)
|
||||
{
|
||||
return nv_rd32(therm, 0x20400);
|
||||
struct nouveau_fuse *fuse = nouveau_fuse(therm);
|
||||
|
||||
if (nv_ro32(fuse, 0x1a8) == 1)
|
||||
return nv_rd32(therm, 0x20400);
|
||||
else
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user