]> git.ipfire.org Git - people/arne_f/kernel.git/commitdiff
hwmon: (npcm-750-pwm-fan) Change initial pwm target to 255
authorKun Yi <kunyi@google.com>
Mon, 8 Oct 2018 21:49:25 +0000 (14:49 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 24 Nov 2019 07:21:01 +0000 (08:21 +0100)
[ 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>
drivers/hwmon/npcm750-pwm-fan.c

index b998f9fbed41e3fd854625f1a399936efd84835b..979b579bc118fe690d0d82f59841eb9e1ea9497a 100644 (file)
@@ -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 */