From 551af99b5cadeeff8bb97b97b3afa82421b7eca0 Mon Sep 17 00:00:00 2001 From: Raptor Engineering Development Team Date: Fri, 10 May 2019 21:19:12 +0000 Subject: hwmon/aspeed-pwm-tacho: Increase tachometer read time On the Blackbird desk-side systems we expect users will be running large fans very slowly. The current tachometer reading drops to zero under those conditions, resulting in failed fan detection systems kicking in. Increase the tachometer read time to allow for slower fans to return a valid speed. This does make read slower, but more advance fan control software should be able to compensate via e.g. PID loops. Signed-off-by: Timothy Pearson --- drivers/hwmon/aspeed-pwm-tacho.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/hwmon') diff --git a/drivers/hwmon/aspeed-pwm-tacho.c b/drivers/hwmon/aspeed-pwm-tacho.c index a9bf01a46737..e9aba0075f8f 100644 --- a/drivers/hwmon/aspeed-pwm-tacho.c +++ b/drivers/hwmon/aspeed-pwm-tacho.c @@ -162,7 +162,7 @@ * 11: reserved. */ #define M_TACH_MODE 0x02 /* 10b */ -#define M_TACH_UNIT 0x0210 +#define M_TACH_UNIT 0x1000 #define INIT_FAN_CTRL 0xFF /* How long we sleep in us while waiting for an RPM result. */ -- cgit v1.2.3