Re: [PATCH 1/3] hwmon: arctic_fan_controller: default PWM cache to MCU 40%

From: Guenter Roeck

Date: Thu Sep 10 2026 - 20:56:41 EST


On Thu, Sep 10, 2026 at 01:03:59PM +0800, Aureo Serrano de Souza wrote:
> The device has no GET_REPORT and every OUT report carries all 10
> channels, so the cache has to start at some value. Starting at 0
> means the first sysfs write to a single channel also sends 0% on
> the other nine.
>
> The MCU factory default is 40%. Initialize pwm_duty[] to 102 (40%
> on the 0-255 sysfs scale) at probe and on reset-resume. Any initial
> cache can be stale if the module is reloaded without a device
> reset. 40% matches the hardware after power-on or power-loss
> resume, and a first single-channel write leaves the fans running
> at a safe speed.
>
> PWM is still not taken from periodic IN reports: the device is
> manual-only and the host cache stays authoritative after the first
> successful write.
>
> Signed-off-by: Aureo Serrano de Souza <aureo.serrano@xxxxxxxxx>

Applied.

Thanks,
Guenter