]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
hwmon: (pwm-fan) Implement after shutdown fan settings
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Thu, 4 Sep 2025 20:21:10 +0000 (22:21 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 7 Sep 2025 23:33:48 +0000 (16:33 -0700)
commitda0a3cc73a2bffe8faef6227a74e5a2de2e79a0c
treef26860218e60a8ce775b05ffd2b4aff5bbbb6ee0
parentbd48b5a4e8d3e1ac2c1ba1e18ba1350ea2c9eb10
hwmon: (pwm-fan) Implement after shutdown fan settings

Add fan-shutdown-percent property, used to describe fan RPM in percent set
during shutdown. This is used to keep the fan running at fixed RPM after
the kernel shut down, which is useful on hardware that does keep heating
itself even after the kernel did shut down, for example from some sort of
management core. The current behavior of pwm-fan is to unconditionally
stop the fan on shutdown, which is not always the safe and correct thing
to do, so let the hardware description include the expected behavior.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://lore.kernel.org/r/20250904202157.170600-2-marek.vasut+renesas@mailbox.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pwm-fan.c