drm/nouveau/therm: don't try pwm/toggle control if GPIO_FAN is input
authorBen Skeggs <bskeggs@redhat.com>
Fri, 7 Dec 2012 01:37:28 +0000 (11:37 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 20 Feb 2013 06:00:29 +0000 (16:00 +1000)
commit708ff04b137f1ec233b9e82cb4852ee53ad26f9f
treeef5e9ce0f59cbd03031f0ffeb169403cb2d622bd
parente8c3cc0803b7f70f2f96d3bae3c4a4ac5238ed10
drm/nouveau/therm: don't try pwm/toggle control if GPIO_FAN is input

My GTX660 has the GPIO_FAN function, but it's configured in input-mode;
presumably to monitor the frequency set by an I2C fan controller?

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/include/subdev/bios/gpio.h
drivers/gpu/drm/nouveau/core/subdev/therm/fan.c