Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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

parent c5b4865e
Loading
Loading
Loading
Loading
+6 −1
Original line number Original line Diff line number Diff line
@@ -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