summaryrefslogtreecommitdiff
path: root/chip/lm4/pwm.c
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-10-11 13:16:43 -0700
committerGerrit <chrome-bot@google.com>2012-10-11 14:24:43 -0700
commitb00a446ec57323f84002722523783351f19e41b1 (patch)
tree03dce4a51f0ed47655cb147f5a02907c5c127a4b /chip/lm4/pwm.c
parentceb696a20896511aa233b1f59227a6edaeda3157 (diff)
downloadchrome-ec-b00a446ec57323f84002722523783351f19e41b1.tar.gz
link: EC reclaims fan control on AP shutdown
Previously, if the AP took fan control, the EC would never take it back. This meant the EC would leave the fan off even if the system was sitting at the INSERT screen or booted an alternate OS. BUG=chrome-os-partner:15189 BRANCH=link TEST=manual - boot system - from EC console, fanset 0 - faninfo shows fan at 0rpm - from root shell, crossystem recovery_request=123 && reboot - wait a few mins - faninfo should show fan spinning again Change-Id: I534c9978194085467f1df6eae971c55d4e8083be Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/35309
Diffstat (limited to 'chip/lm4/pwm.c')
-rw-r--r--chip/lm4/pwm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/chip/lm4/pwm.c b/chip/lm4/pwm.c
index 043a8b556c..431f04036f 100644
--- a/chip/lm4/pwm.c
+++ b/chip/lm4/pwm.c
@@ -205,7 +205,7 @@ static int command_fan_set(int argc, char **argv)
#ifdef CONFIG_TASK_THERMAL
/* Disable thermal engine automatic fan control. */
- thermal_toggle_auto_fan_ctrl(0);
+ thermal_control_fan(0);
#endif
return pwm_set_fan_target_rpm(rpm);
@@ -236,7 +236,7 @@ int pwm_set_fan_duty(int percent)
#ifdef CONFIG_TASK_THERMAL
/* Disable thermal engine automatic fan control. */
- thermal_toggle_auto_fan_ctrl(0);
+ thermal_control_fan(0);
#endif
/* Set the duty cycle */