diff options
| author | Aureo Serrano de Souza <aureo.serrano@arctic.de> | 2026-09-10 13:03:59 +0800 |
|---|---|---|
| committer | Guenter Roeck <linux@roeck-us.net> | 2026-10-18 09:35:07 -0700 |
| commit | d17832c1c97b0a7af780ac7d500b5412d9edabd1 (patch) | |
| tree | a594e73bd8432405b7ab8aa5157c670cd2668d1c /tools/perf/scripts/python/stackcollapse.py | |
| parent | 6c2437800da2f0b19b06990e60f4828cde83f040 (diff) | |
| download | linux-d17832c1c97b0a7af780ac7d500b5412d9edabd1.tar.gz linux-d17832c1c97b0a7af780ac7d500b5412d9edabd1.zip | |
hwmon: (arctic_fan_controller) Default PWM cache to MCU 40%
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@arctic.de>
Link: https://patch.msgid.link/20260910050401.279868-2-aureo.serrano@arctic.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
