]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite0fcee37f285d2eb4d9a17051244780f7a1574fa
treeffd20eee9bc526cfca7e4c392435027b7fa86561
parent444b634f33a77326d302fd047184b777a5204202
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