drm/nouveau/fan: restore pwm value on resume when in manual/auto mode
authorMartin Peres <martin.peres@labri.fr>
Mon, 12 Aug 2013 02:48:49 +0000 (22:48 -0400)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 4 Sep 2013 03:46:35 +0000 (13:46 +1000)
commit4cc00ad1373674cdd1bce387bd1d4e3f5c42a99c
treeffd20eee9bc526cfca7e4c392435027b7fa86561
parentffb8ea8af20d88ed8b314be62a77b992055d10c8
drm/nouveau/fan: restore pwm value on resume when in manual/auto mode

If the fan was in manual or auto mode, we should restore the fan speed
that was previously set when resuming.

The initial pwm value is saved when loading the module.

Signed-off-by: Martin Peres <martin.peres@labri.fr>
Tested-by: Martin Peres <martin.peres@labri.fr>
Tested-by: Dash Four <mr.dash.four@googlemail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/therm/base.c
drivers/gpu/drm/nouveau/core/subdev/therm/fan.c