[GIT PULL] hwmon fixes for v7.4-rc4

From: Guenter Roeck

Date: Fri Nov 20 2026 - 16:00:01 EST


Hi Linus,

Please pull hwmon fixes for Linux v7.4-rc4 from signed tag:

git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-for-v7.4-rc4

Thanks,
Guenter
------

The following changes since commit aebb7274476403040d582c61478df8f4a7bf9cd3:

Linux 7.4-rc3 (2026-11-15 14:30:11 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git tags/hwmon-for-v7.4-rc4

for you to fetch changes up to 449cdc5e29c63aa66b41ce8c2783f6b0d84c62b0:

hwmon: (ads7871) Add error handle from spi_setup() (2026-11-19 08:50:01 -0800)

----------------------------------------------------------------
hwmon fixes for v7.4-rc4

* Use per-device lockdep keys in the hwmon core to avoid false-positive
recursive locking warnings when one hwmon device accesses another.

* Fix sysfs attribute struct downcast mismatches on big-endian systems
that caused out-of-bounds temp1 array accesses in w83791d/w83792d and
directed all beep writes to channel 0 in nct6775.

* Fix nct6775 fan control: initialize target temperature and tolerance
masks/limits on NCT6106/6116/6126, fix swapped normal and critical
temperature tolerance writes, and use tolerance_mask on REG_FAN_MODE.

* Reject dell-smm fan_max values above 255 to avoid allocation count
wraparound and invalid SMM calls, and reject PWM writes outside 0..255
to prevent integer overflow from turning fans off.

* Fix 32-bit overflow and bitfield wrap when encoding sht3x alert
limits, and propagate spi_setup() errors in ads7871 probe before
accessing registers.

----------------------------------------------------------------
Guenter Roeck (4):
hwmon: Use per-device lockdep keys
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

Rosen Penev (2):
hwmon: (dell-smm) Reject a fan_max that the BIOS cannot take
hwmon: (dell-smm) Reject out-of-range pwm values

Vítor Hugo Silva (1):
hwmon: (ads7871) Add error handle from spi_setup()

Wayne Ho (1):
hwmon: (sht3x) Fix overflow when writing alert limits

Ziheng Wei (3):
hwmon: (nct6775) Fix incorrect struct cast in beep callbacks
hwmon: (w83791d) Fix incorrect struct cast in show_temp1() and store_temp1()
hwmon: (w83792d) Fix incorrect struct cast in show_temp1() and store_temp1()

drivers/hwmon/ads7871.c | 4 +++-
drivers/hwmon/dell-smm-hwmon.c | 9 +++++++++
drivers/hwmon/hwmon.c | 7 ++++++-
drivers/hwmon/nct6775-core.c | 19 ++++++++++++++-----
drivers/hwmon/sht3x.c | 4 ++--
drivers/hwmon/w83791d.c | 4 ++--
drivers/hwmon/w83792d.c | 4 ++--
7 files changed, 38 insertions(+), 13 deletions(-)