Re: [PATCH v2] hwmon: (nct7802) Add time step attributes for tweaking responsiveness
From: Guenter Roeck
Date: Thu May 14 2026 - 18:38:47 EST
On Thu, May 14, 2026 at 12:34:04PM +1200, Ronan Dalton wrote:
> 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@xxxxxxxxxxxxxxxxxxx>
> Cc: linux-kernel@xxxxxxxxxxxxxxx
> Cc: linux-hwmon@xxxxxxxxxxxxxxx
> Cc: Guenter Roeck <linux@xxxxxxxxxxxx>
> Cc: Chris Packham <chris.packham@xxxxxxxxxxxxxxxxxxx>
Applied.
Thanks,
Guenter