]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Merge tag 'hwmon-for-v7.2' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck...
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 16 Jun 2026 02:40:21 +0000 (08:10 +0530)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 16 Jun 2026 02:40:21 +0000 (08:10 +0530)
Pull hwmon updates from Guenter Roeck:
 "New drivers for the following chips:
   - Analog Devices LTC4283 Swap Controller
   - Analog Devices MAX20830
   - Analog Devices MAX20860A
   - ARCTIC Fan Controller
   - Delta E50SN12051
   - Luxshare LX1308
   - Microchip EMC1812/13/14/15/33
   - Monolithic MP2985
   - Murata D1U74T PSU

  New chip support added to existing drivers:
   - asus-ec-sensors: Support for ROG MAXIMUS Z790 EXTREME, ROG STRIX
     B850-E GAMING WIFI, and ROG STRIX B650E-E GAMING WIFI
   - dell-smm: Add Dell Latitude 7530 to fan control whitelist
   - nct6683: Support for ASRock Z890 Pro-A
   - pmbus: Support for Flex BMR316, BMR321, BMR350 and BMR351
   - pmbus/max34440: Support for ADPM12250
   - pmbus/xdp720: Support for Infineon xdp730, and fix driver issues
     reported by Sashiko

  New functionality:
   - Add support for update_interval_us chip attribute, and support it
     in ina238 driver
   - Add support for guard() and scoped_guard() for subsystem locks, and
     use it in adt7411, ina2xx, and lm90 drivers
   - emc2305: Support configurable fan PWM at shutdown
   - lm63: Expose PWM frequency and LUT hysteresis as writable
   - lm75: Support active-high alert polarity
   - nct7802: Add time step attributes for tweaking responsiveness
   - pmbus/adm1266: Add rtc debugfs entries for rtc, powerup_counter,
     clear_blackbox, and firmware_revision
   - raspberrypi: Fix delayed-work teardown race, add voltage input
     support as well as voltage domain IDs
   - mcp9982: Add support for reporting external diode faults

  Miscellaneous bug fixes, changes and improvements:
   - Use named initializers for platform_device_id arrays and
     i2c_device_data, and remove unused driver data
   - Various drivers: Move MODULE_DEVICE_TABLE next to the table itself
   - ads7871: Convert to hwmon_device_register_with_info(), and use
     DMA-safe buffer for SPI writes
   - adt7411: document supported sysfs attributes
   - adt7462: Add of_match_table to support devicetree
   - adt7475: Add explicit header include
   - coretemp; Fix outdated documentation, coding style issues, and
     replace hardcoded core count with dynamic value
   - cros_ec: Drop unused assignment of platform_device_id driver data
   - emc2305: Fix fan channel index handling
   - gpd-fan: Reject EC PWM value 0 as invalid, fix race condition
     between device removal and sysfs access, upgrade log level from
     warn to err for platform device creation failure, initialize EC
     before registering hwmon device, drop global driver data and use
     per-device allocation
   - htu31: document debugfs serial_number
   - ina238: Add support for samples and update_interval
   - it87: Clamp negative values to zero in set_fan()
   - lm75: Add explicit header include, Add explicit default cases in
     lm75_is_visible(), and add section for sysfs interface to
     documentation
   - pmbus/lm25066: Fix PMBus coefficients for LM5064/5066/5066i
   - tmp102: Use device_property_read_string API
   - tmp401: Read "ti,n-factor" as signed
   - Convert zyxel,nsa320-mcu to DT schema"

* tag 'hwmon-for-v7.2' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging: (81 commits)
  hwmon: tmp401: Read "ti,n-factor" as signed
  hwmon: (pmbus/lm25066) Fix PMBus coefficients for LM5064/5066/5066i
  hwmon: (gpd-fan) Reject EC PWM value 0 as invalid
  hwmon: (dell-smm) Add Dell Latitude 7530 to fan control whitelist
  hwmon: temperature: add support for EMC1812
  dt-bindings: hwmon: temperature: add support for EMC1812
  hwmon: (gpd-fan): fix race condition between device removal and sysfs access
  hwmon: (gpd-fan): upgrade log level from warn to err for platform device creation failure
  hwmon: (gpd-fan): Initialize EC before registering hwmon device
  hwmon: (gpd-fan): drop global driver data and use per-device allocation
  hwmon: (pmbus/max34440): add support adpm12250
  hwmon: (ina238) Add update_interval_us attribute
  hwmon: Add update_interval_us chip attribute
  hwmon: (ina238) Add support for samples and update_interval
  gpio: gpio-ltc4283: Add support for the LTC4283 Swap Controller
  hwmon: ltc4283: Add support for the LTC4283 Swap Controller
  dt-bindings: hwmon: Document the LTC4283 Swap Controller
  hwmon: (pmbus/xdp720) Fix driver issues xdp720/730
  hwmon: (pmbus/xdp720) Add support for efuse xdp730
  dt-bindings: hwmon/pmbus: Add Infineon xdp730
  ...

12 files changed:
1  2 
MAINTAINERS
drivers/gpio/Kconfig
drivers/gpio/Makefile
drivers/hwmon/amc6821.c
drivers/hwmon/coretemp.c
drivers/hwmon/cros_ec_hwmon.c
drivers/hwmon/dell-smm-hwmon.c
drivers/hwmon/emc2305.c
drivers/hwmon/hwmon.c
drivers/hwmon/max6650.c
drivers/hwmon/tc654.c
include/linux/hwmon.h

diff --cc MAINTAINERS
Simple merge
Simple merge
Simple merge
Simple merge
index 70711a7cca123968f94e973544e8dfd31b21763f,02b4e46d965b970a517e89c971feb0fde32c9766..6215ea49faaa9e6d4816b3463b8a9b4f3ada1653
@@@ -220,14 -220,13 +220,13 @@@ static int adjust_tjmax(struct cpuinfo_
                 * http://softwarecommunity.intel.com/Wiki/Mobility/720.htm
                 * For Core2 cores, check MSR 0x17, bit 28 1 = Mobile CPU
                 */
 -              err = rdmsr_safe_on_cpu(id, 0x17, &eax, &edx);
 +              err = rdmsrq_safe_on_cpu(id, 0x17, &val);
                if (err) {
                        dev_warn(dev,
-                                "Unable to access MSR 0x17, assuming desktop"
-                                " CPU\n");
+                                "Unable to access MSR 0x17, assuming desktop CPU\n");
                        usemsr_ee = 0;
                } else if (c->x86_vfm < INTEL_CORE2_PENRYN &&
 -                         !(eax & 0x10000000)) {
 +                         !(val & 0x10000000)) {
                        /*
                         * Trust bit 28 up to Penryn, I could not find any
                         * documentation on that; if you happen to know
        }
  
        if (usemsr_ee) {
 -              err = rdmsr_safe_on_cpu(id, 0xee, &eax, &edx);
 +              err = rdmsrq_safe_on_cpu(id, 0xee, &val);
                if (err) {
                        dev_warn(dev,
-                                "Unable to access MSR 0xEE, for Tjmax, left"
-                                " at default\n");
+                                "Unable to access MSR 0xEE, for Tjmax, left at default\n");
 -              } else if (eax & 0x40000000) {
 +              } else if (val & 0x40000000) {
                        tjmax = tjmax_ee;
                }
        } else if (tjmax == 100000) {
@@@ -354,9 -352,9 +352,9 @@@ static ssize_t show_label(struct devic
  }
  
  static ssize_t show_crit_alarm(struct device *dev,
-                               struct device_attribute *devattr, char *buf)
+                              struct device_attribute *devattr, char *buf)
  {
 -      u32 eax, edx;
 +      struct msr val;
        struct temp_data *tdata = container_of(devattr, struct temp_data,
                                                sd_attrs[ATTR_CRIT_ALARM]);
  
@@@ -396,9 -394,9 +394,9 @@@ static ssize_t show_ttarget(struct devi
  }
  
  static ssize_t show_temp(struct device *dev,
-                       struct device_attribute *devattr, char *buf)
+                        struct device_attribute *devattr, char *buf)
  {
 -      u32 eax, edx;
 +      struct msr val;
        struct temp_data *tdata = container_of(devattr, struct temp_data, sd_attrs[ATTR_TEMP]);
        int tjmax;
  
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge