[PATCH 0/2] hwmon: (nct6683) Writable fan curves for NCT6687D-R
From: Tomasz Bojanowski
Date: Mon Nov 09 2026 - 17:35:13 EST
This series makes the fan curves of NCT6687D-R (customer ID 0x20d)
writable through pwmN_auto_point*. Following your reply in [1],
pwmN_enable is unchanged, and the curves written through sysfs are
restored on resume.
Patch 1 moves the fan configuration transaction into a helper, without
functional change. Patch 2 makes the curve points writable.
Tested on an MSI MAG B850M MORTAR WIFI (MS-7E61) with pwm16: curve
points written in automatic and manual mode, including clamping, a
written curve kept across suspend to RAM, and manual mode still restored
after resume. Only pwm16 was written; the curves of the other channels
stayed unchanged.
The new pwmN_auto_point*_pwm attributes clamp out-of-range values, as
sysfs-interface.rst recommends for continuous settings. pwmN keeps
rejecting values above 255 with -EINVAL; changing that would be a
separate change.
I used an AI assistant (Claude Code) during development. I reviewed all
of the changes, tested them on the hardware described above, and take
responsibility for them.
[1] https://lore.kernel.org/linux-hwmon/487b2f39-7e22-46db-9eaf-9b1dd9b31d31@xxxxxxxxxxxx/
Tomasz Bojanowski (2):
hwmon: (nct6683) Factor out the NCT6687D-R fan configuration
transaction
hwmon: (nct6683) Make the fan curves of NCT6687D-R writable
Documentation/hwmon/nct6683.rst | 35 ++-
drivers/hwmon/nct6683.c | 378 ++++++++++++++++++++++++++------
2 files changed, 330 insertions(+), 83 deletions(-)
base-commit: e0fdadf444800610828d01b299743f79ae3bd27f
--
2.56.0