]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
hwmon: (emc2305) Set initial PWM minimum value during probe based on thermal state
authorFlorin Leotescu <florin.leotescu@nxp.com>
Tue, 3 Jun 2025 11:31:25 +0000 (14:31 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:28:26 +0000 (16:28 +0200)
commit16e245176777f160ae028df93f4ff3cb372678a1
treedbad73efa974606d242853448b31c00f54dda9f4
parentd202efb10a4bac20077e5ca60519f7c4154b13a6
hwmon: (emc2305) Set initial PWM minimum value during probe based on thermal state

[ Upstream commit 0429415a084a15466e87d504e8c2a502488184a5 ]

Prevent the PWM value from being set to minimum when thermal zone
temperature exceeds any trip point during driver probe. Otherwise, the
PWM fan speed will remains at minimum speed and not respond to
temperature changes.

Signed-off-by: Florin Leotescu <florin.leotescu@nxp.com>
Link: https://lore.kernel.org/r/20250603113125.3175103-5-florin.leotescu@oss.nxp.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hwmon/emc2305.c