]> git.hungrycats.org Git - linux/commit
hwmon: (nct7802) Add time step attributes for tweaking responsiveness
authorRonan Dalton <ronan.dalton@alliedtelesis.co.nz>
Thu, 14 May 2026 00:34:04 +0000 (12:34 +1200)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 9 Jun 2026 15:23:00 +0000 (08:23 -0700)
commit1000878867bdf36b768802128f51379a1d8593e6
tree76facc84c570c701379a68c1d37c528dba80ccff
parent4a9e6a9230c88a71916301b9fe6627413ebc2574
hwmon: (nct7802) Add time step attributes for tweaking responsiveness

The nct7802 chip exposes two registers that allow setting the time
interval between successive duty increases or decreases in Smart Fan
mode. The units are intervals of 0.1 second. The default value at power
on is 10, so 1 second.

Add sysfs attributes for step_up_time and step_down_time to allow
controlling the responsiveness of the fan speed. Values are represented
as milliseconds to the user. When set, the value is clamped to the valid
range of 100 to 25500 (0.1 to 25.5 seconds), and rounded to the nearest
multiple of 100.

Signed-off-by: Ronan Dalton <ronan.dalton@alliedtelesis.co.nz>
Cc: linux-kernel@vger.kernel.org
Cc: linux-hwmon@vger.kernel.org
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Chris Packham <chris.packham@alliedtelesis.co.nz>
Link: https://lore.kernel.org/r/20260514003404.1548747-2-ronan.dalton@alliedtelesis.co.nz
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Documentation/hwmon/nct7802.rst
drivers/hwmon/nct7802.c