diff options
Diffstat (limited to 'nvkm/subdev/therm/fan.c')
-rw-r--r-- | nvkm/subdev/therm/fan.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nvkm/subdev/therm/fan.c b/nvkm/subdev/therm/fan.c index c728380d..4d8450fc 100644 --- a/nvkm/subdev/therm/fan.c +++ b/nvkm/subdev/therm/fan.c @@ -234,6 +234,9 @@ nouveau_therm_fan_ctor(struct nouveau_therm *therm) nv_info(therm, "FAN control: %s\n", priv->fan->type); + /* read the current speed, it is useful when resuming */ + priv->fan->percent = nouveau_therm_fan_get(therm); + /* attempt to detect a tachometer connection */ ret = gpio->find(gpio, 0, DCB_GPIO_FAN_SENSE, 0xff, &priv->fan->tach); if (ret) |