]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (pwm-fan) Fix suspend/resume behavior
authorKamil Debski <k.debski@samsung.com>
Mon, 3 Nov 2014 14:42:55 +0000 (15:42 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 11 Nov 2014 18:39:45 +0000 (10:39 -0800)
commit4507e4544c91af62bf8c54764a385b6ad0f718d7
tree9e6acd855c6088dd9d9dbbb2d95ccc665da4edda
parent169f8aab371b4ad93d2a0c8e29d2b734eba4eaf5
hwmon: (pwm-fan) Fix suspend/resume behavior

The state of a PWM output is not clearly defined after resume. Some PWM
drivers do not restore the duty cycle upon resume, thus it is necessary to
manually restore the correct value.

Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pwm-fan.c