From 84208c27ae14003e980575df7b31b9c2aab1c40e Mon Sep 17 00:00:00 2001 From: Daisuke Nojiri Date: Tue, 27 Feb 2018 20:29:27 -0800 Subject: npcx/fan: Make all fans in RPM mode work Currently, if there is a fan which isn't in RPM mode, the rest of the fans are not controlled even if they're in RPM mode. This patch gives a chance to all the fans. BUG=b:35543471 BRANCH=none TEST=none Change-Id: I6f930bad313bc2a31497f46647ab2b08e328dfff Signed-off-by: Daisuke Nojiri Reviewed-on: https://chromium-review.googlesource.com/940813 Reviewed-by: Randall Spangler --- chip/npcx/fan.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chip/npcx/fan.c b/chip/npcx/fan.c index 8e08e4ec58..123dd35518 100644 --- a/chip/npcx/fan.c +++ b/chip/npcx/fan.c @@ -346,8 +346,7 @@ 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; + continue; } if (!fan_get_enabled(ch)) continue; -- cgit v1.2.1