summaryrefslogtreecommitdiff
path: root/drivers/hwmon/npcm750-pwm-fan.c
diff options
context:
space:
mode:
authorKun Yi <kunyi@google.com>2018-10-09 00:49:25 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-11-24 10:21:01 +0300
commita119952d4be6ed23c9951e1abbf32e3652ca4add (patch)
tree4ebd6653f48b759cc4bb28894c2243017f128ba7 /drivers/hwmon/npcm750-pwm-fan.c
parent4bbc8deedd89665e9c31290a9e74337a917c6006 (diff)
downloadlinux-a119952d4be6ed23c9951e1abbf32e3652ca4add.tar.xz
hwmon: (npcm-750-pwm-fan) Change initial pwm target to 255
[ Upstream commit f21c8e753b1dcb8f9e5b096db1f7f4e6fdfa7258 ] Change initial PWM target to 255 to prevent overheating, for example when BMC hangs in userspace or when userspace fan control application is not implemented yet. Signed-off-by: Kun Yi <kunyi@google.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/hwmon/npcm750-pwm-fan.c')
-rw-r--r--drivers/hwmon/npcm750-pwm-fan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/npcm750-pwm-fan.c b/drivers/hwmon/npcm750-pwm-fan.c
index b998f9fbed41..979b579bc118 100644
--- a/drivers/hwmon/npcm750-pwm-fan.c
+++ b/drivers/hwmon/npcm750-pwm-fan.c
@@ -52,7 +52,7 @@
/* Define the Counter Register, value = 100 for match 100% */
#define NPCM7XX_PWM_COUNTER_DEFAULT_NUM 255
-#define NPCM7XX_PWM_CMR_DEFAULT_NUM 127
+#define NPCM7XX_PWM_CMR_DEFAULT_NUM 255
#define NPCM7XX_PWM_CMR_MAX 255
/* default all PWM channels PRESCALE2 = 1 */