[PATCH v5 0/4] hwmon: it87: add IT8613E support
From: Jerome Tollet
Date: Sat Aug 29 2026 - 13:06:10 EST
This is a respin of Benoit Masson's v4 series, with his permission.
It replaces my fan-input-only RFC with the complete support requested
in review.
The v4 series was dropped after a NULL pointer dereference was reported.
The IT8613E device entry did not initialize reg_pwm, while the probe path
unconditionally dereferences it. It also advertised six temperature
offsets but the register table contained only three entries.
Changes in v5:
- Use the IT8665-style PWM register map for IT8613E, matching the
out-of-tree driver.
- Extend the temperature offset register table with the three IT8613E
registers used by the out-of-tree driver.
- Preserve the existing IT8689 behavior when introducing the per-chip
resource and PWM metadata now required by the series.
- Combine IT8613E identification and configuration so no intermediate
patch binds to the device with an incomplete configuration.
- Use octal permissions for the new sysfs attributes.
Tested on an IT8613E at 0xa30, revision 12. Each patch builds as an
external module with W=1, and the complete series passes checkpatch
--strict with no warnings or errors.
The final module loads without errors and exposes the same voltage,
temperature, fan, temperature-offset, and PWM register values as the
out-of-tree driver. On this system it exposes fan2_input and PWM2, PWM4,
and PWM5. The value of pwm2_auto_channels_temp is 4 instead of the
out-of-tree driver's 3 because the upstream ABI reports a channel bitmask
(BIT(2)) rather than a one-based channel number.
The PWM2 write path was tested by switching from automatic control to
manual full duty (255). Fan2 increased from about 2100 RPM to 4687 RPM.
The original duty (65), automatic mode, and temperature mapping were then
restored.
An S3 suspend/resume cycle with an RTC wakeup completed successfully.
The PWM configuration and sensor readings were preserved, with no it87 or
hwmon warnings in the kernel log.
Link: https://lore.kernel.org/linux-hwmon/20260114221210.98071-1-yahoo@xxxxxxxxxxxx/
Link: https://lore.kernel.org/linux-hwmon/20260829113011.51290-1-jerome.tollet@xxxxxxxxx/
benoit.masson (4):
hwmon: it87: describe per-chip temperature resources
hwmon: it87: prepare for extended PWM temp maps
hwmon: it87: expose additional temperature limits
hwmon: it87: add IT8613E support
Documentation/hwmon/it87.rst | 8 +
drivers/hwmon/it87.c | 456 ++++++++++++++++++++++++++++-------
2 files changed, 383 insertions(+), 81 deletions(-)
base-commit: 75f2c0b3690702c90863c2e138cb5520670845ea
--
2.55.0