Re: [PATCH v7 3/3] hwmon: emc2305: Support configurable fan PWM at shutdown

From: Guenter Roeck

Date: Thu Apr 30 2026 - 19:17:54 EST


On Wed, Apr 29, 2026 at 09:59:55AM +0300, florin.leotescu@xxxxxxxxxxx wrote:
> From: Florin Leotescu <florin.leotescu@xxxxxxx>
>
> Some systems require fans to enter in a defined safe state during system
> shutdown or reboot handoff.
>
> Add support for the optional Device Tree property "fan-shutdown-percent"
> to configure the shutdown PWM duty cycle per fan output.
>
> If the property is present for a fan channel, the driver converts the
> configured percentage value to the corresponding PWM duty cycle and
> applies it during driver shutdown.
>
> If the property is not present, the fan state remains unchanged.
>
> Signed-off-by: Florin Leotescu <florin.leotescu@xxxxxxx>

I don't know if Sashiko's concerns are real; if sysfs accesses are still
possible during shutdown, lots of drivers have problems. With that in mind,
applied.

Thanks,
Guenter