From: Kun Yi Date: Mon, 8 Oct 2018 21:49:25 +0000 (-0700) Subject: hwmon: (npcm-750-pwm-fan) Change initial pwm target to 255 X-Git-Tag: rel_imx_5.10.35_2.0.0-somdevices.0~6146^2~4 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=f21c8e753b1dcb8f9e5b096db1f7f4e6fdfa7258;p=linux.git hwmon: (npcm-750-pwm-fan) Change initial pwm target to 255 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 Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/npcm750-pwm-fan.c b/drivers/hwmon/npcm750-pwm-fan.c index 96634fd54e0b..c0fab54c0094 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 */