Linux Hardware Monitor development
 help / color / mirror / Atom feed
* [RFT PATCH 0/3] hwmon: (nct6775) Fix target temperature and tolerance handling
@ 2026-11-10  3:59 Guenter Roeck
  2026-11-10  3:59 ` [RFT PATCH 1/3] hwmon: (nct6775) Fix target temp and tolerance for NCT6106/6116/6126 Guenter Roeck
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Guenter Roeck @ 2026-11-10  3:59 UTC (permalink / raw)
  To: linux-hwmon; +Cc: Anton Lundin, Guenter Roeck

From: Guenter Roeck <groeck@google.com>

This series fixes three bugs in fan target temperature and tolerance
handling in the nct6775 driver:

- Patch 1 initializes target_temp_mask, tolerance_mask, and
  speed_tolerance_limit for NCT6106, NCT6116, and NCT6126 in
  nct6775_probe() so pwm*_target_temp and the tolerance attributes do
  not read or clamp to 0 and REG_FAN_MODE tolerance bits are cleared on
  updates.
- Patch 2 fixes the inverted index check in store_temp_tolerance() so
  writes to pwm*_temp_tolerance update REG_FAN_MODE and writes to
  pwm*_crit_temp_tolerance update REG_CRITICAL_TEMP_TOLERANCE instead of
  each writing the other's register.
- Patch 3 masks fanmodecfg with data->tolerance_mask instead of a
  hardcoded 0x0f in nct6775_update_pwm() so bit 3 of REG_FAN_MODE does
  not leak into cached tolerance values on chips with a 3-bit tolerance
  field.

Disclosure per Documentation/process/generated-content.rst:
Patch 1 was reported by Sashiko
(https://sashiko.dev/#/bug/linux-76f191d0-4c79-4982-887e-e5c9a2ed7136),
and patches 2 and 3 were flagged as pre-existing concerns by local
sashiko review while reviewing patch 1. An AI coding assistant (Gemini)
was prompted to investigate and fix the Sashiko report, fix the two
additional issues reported by Sashiko, and write this cover letter; it
generated the code changes, commit messages, and cover letter text. The
series was build-tested on x86_64 with W=1, verified under User-Mode
Linux (ARCH=um) using an out-of-tree simulated regmap test module
exercising the affected sysfs attributes and register values (not tested
on physical hardware), and checked with scripts/checkpatch.pl and
sashiko review.

I don't have hardware to test the patches, therefore I am submitting them
as RFT.

Guenter Roeck (3):
  hwmon: (nct6775) Fix target temp and tolerance for NCT6106/6116/6126
  hwmon: (nct6775) Fix swapped temperature tolerance register writes
  hwmon: (nct6775) Fix tolerance bitmask when reading REG_FAN_MODE

 drivers/hwmon/nct6775-core.c | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

-- 
2.56.0

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

end of thread, other threads:[~2026-11-10  5:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-10  3:59 [RFT PATCH 0/3] hwmon: (nct6775) Fix target temperature and tolerance handling Guenter Roeck
2026-11-10  3:59 ` [RFT PATCH 1/3] hwmon: (nct6775) Fix target temp and tolerance for NCT6106/6116/6126 Guenter Roeck
2026-11-10  4:15   ` sashiko-bot
2026-11-10  5:46     ` Guenter Roeck
2026-11-10  3:59 ` [RFT PATCH 2/3] hwmon: (nct6775) Fix swapped temperature tolerance register writes Guenter Roeck
2026-11-10  4:19   ` sashiko-bot
2026-11-10  3:59 ` [RFT PATCH 3/3] hwmon: (nct6775) Fix tolerance bitmask when reading REG_FAN_MODE Guenter Roeck
2026-11-10  4:26   ` sashiko-bot

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