Linux Hardware Monitor development
 help / color / mirror / Atom feed
* [PATCH 0/2] hwmon: (nct6683) Writable fan curves for NCT6687D-R
@ 2026-11-09 22:34 Tomasz Bojanowski
  2026-11-09 22:34 ` [PATCH 1/2] hwmon: (nct6683) Factor out the NCT6687D-R fan configuration transaction Tomasz Bojanowski
  2026-11-09 22:34 ` [PATCH 2/2] hwmon: (nct6683) Make the fan curves of NCT6687D-R writable Tomasz Bojanowski
  0 siblings, 2 replies; 5+ messages in thread
From: Tomasz Bojanowski @ 2026-11-09 22:34 UTC (permalink / raw)
  To: Guenter Roeck
  Cc: linux-hwmon, Hamza Mahfooz, Jonathan Corbet, Shuah Khan,
	Randy Dunlap, linux-doc, linux-kernel

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@roeck-us.net/

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-09 22:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-09 22:34 [PATCH 0/2] hwmon: (nct6683) Writable fan curves for NCT6687D-R Tomasz Bojanowski
2026-11-09 22:34 ` [PATCH 1/2] hwmon: (nct6683) Factor out the NCT6687D-R fan configuration transaction Tomasz Bojanowski
2026-11-09 22:37   ` sashiko-bot
2026-11-09 22:34 ` [PATCH 2/2] hwmon: (nct6683) Make the fan curves of NCT6687D-R writable Tomasz Bojanowski
2026-11-09 22:39   ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox