summaryrefslogtreecommitdiff
path: root/chip/npcx/fan.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/npcx/fan.c')
-rw-r--r--chip/npcx/fan.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/chip/npcx/fan.c b/chip/npcx/fan.c
index ca0980a91a..8e08e4ec58 100644
--- a/chip/npcx/fan.c
+++ b/chip/npcx/fan.c
@@ -346,8 +346,11 @@ void fan_tick_func(void)
/* Make sure rpm mode is enabled */
if (p_status->fan_mode != TACHO_FAN_RPM) {
p_status->auto_status = FAN_STATUS_STOPPED;
+ /* Why isn't this 'continue'? */
return;
}
+ if (!fan_get_enabled(ch))
+ continue;
/* Get actual rpm */
p_status->rpm_actual = mft_fan_rpm(ch);
/* Do smart fan stuff */