]> git.ipfire.org Git - thirdparty/kernel/linux.git/log
thirdparty/kernel/linux.git
3 weeks agohwmon: (w83l786ng) Convert macros to functions to avoid TOCTOU
Gui-Dong Han [Fri, 28 Nov 2025 12:38:16 +0000 (20:38 +0800)] 
hwmon: (w83l786ng) Convert macros to functions to avoid TOCTOU

The macros FAN_FROM_REG and TEMP_FROM_REG evaluate their arguments
multiple times. When used in lockless contexts involving shared driver
data, this causes Time-of-Check to Time-of-Use (TOCTOU) race
conditions.

Convert the macros to static functions. This guarantees that arguments
are evaluated only once (pass-by-value), preventing the race
conditions.

Adhere to the principle of minimal changes by only converting macros
that evaluate arguments multiple times and are used in lockless
contexts.

Link: https://lore.kernel.org/all/CALbr=LYJ_ehtp53HXEVkSpYoub+XYSTU8Rg=o1xxMJ8=5z8B-g@mail.gmail.com/
Fixes: 85f03bccd6e0 ("hwmon: Add support for Winbond W83L786NG/NR")
Cc: stable@vger.kernel.org
Signed-off-by: Gui-Dong Han <hanguidong02@gmail.com>
Link: https://lore.kernel.org/r/20251128123816.3670-1-hanguidong02@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
3 weeks agohwmon: (max6697) fix regmap leak on probe failure
Johan Hovold [Thu, 27 Nov 2025 13:43:51 +0000 (14:43 +0100)] 
hwmon: (max6697) fix regmap leak on probe failure

The i2c regmap allocated during probe is never freed.

Switch to using the device managed allocator so that the regmap is
released on probe failures (e.g. probe deferral) and on driver unbind.

Fixes: 3a2a8cc3fe24 ("hwmon: (max6697) Convert to use regmap")
Cc: stable@vger.kernel.org # 6.12
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20251127134351.1585-1-johan@kernel.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
3 weeks agohwmon/w83781d: Drop REALLY_SLOW_IO setting
Juergen Gross [Wed, 26 Nov 2025 16:20:16 +0000 (17:20 +0100)] 
hwmon/w83781d: Drop REALLY_SLOW_IO setting

In w83781d_isa_found() there is REALLY_SLOW_IO defined around some port
accesses, probably in order to wait between multiple accesses.

Unfortunately this isn't making any difference compared to not having
this define since more than a decade, as REALLY_SLOW_IO needs to be
defined while "#include <asm/io.h>" is called to have an effect.

As there seem not to be any outstanding issues in spite of this having
no effect, just drop the "#define" and add a remark to the related
comment.

Signed-off-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/20251126162018.5676-4-jgross@suse.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
3 weeks agohwmon/lm78: Drop REALLY_SLOW_IO setting
Juergen Gross [Wed, 26 Nov 2025 16:20:15 +0000 (17:20 +0100)] 
hwmon/lm78: Drop REALLY_SLOW_IO setting

In lm78_isa_found() there is REALLY_SLOW_IO defined around some port
accesses, probably in order to wait between multiple accesses.

Unfortunately this isn't making any difference compared to not having
this define since more than a decade, as REALLY_SLOW_IO needs to be
defined while "#include <asm/io.h>" is called to have an effect.

As there seem not to be any outstanding issues in spite of this having
no effect, just drop the "#define" and add a remark to the related
comment.

Signed-off-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/20251126162018.5676-3-jgross@suse.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
3 weeks agohwmon: sy7636a: Fix regulator_enable resource leak on error path
Haotian Zhang [Wed, 26 Nov 2025 16:26:02 +0000 (00:26 +0800)] 
hwmon: sy7636a: Fix regulator_enable resource leak on error path

In sy7636a_sensor_probe(), regulator_enable() is called but if
devm_hwmon_device_register_with_info() fails, the function returns
without calling regulator_disable(), leaving the regulator enabled
and leaking the reference count.

Switch to devm_regulator_get_enable() to automatically
manage the regulator resource.

Fixes: de34a4053250 ("hwmon: sy7636a: Add temperature driver for sy7636a")
Suggested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
Link: https://lore.kernel.org/r/20251126162602.2086-1-vulab@iscas.ac.cn
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
3 weeks agohwmon: (adm1026) Convert macros to functions to avoid TOCTOU
Gui-Dong Han [Wed, 26 Nov 2025 11:38:28 +0000 (19:38 +0800)] 
hwmon: (adm1026) Convert macros to functions to avoid TOCTOU

The macro FAN_FROM_REG evaluates its arguments multiple times. When used
in lockless contexts involving shared driver data, this causes
Time-of-Check to Time-of-Use (TOCTOU) race conditions.

Convert the macro to a static function. This guarantees that arguments
are evaluated only once (pass-by-value), preventing the race
conditions.

Adhere to the principle of minimal changes by only converting macros
that evaluate arguments multiple times and are used in lockless
contexts.

Link: https://lore.kernel.org/all/CALbr=LYJ_ehtp53HXEVkSpYoub+XYSTU8Rg=o1xxMJ8=5z8B-g@mail.gmail.com/
Signed-off-by: Gui-Dong Han <hanguidong02@gmail.com>
Link: https://lore.kernel.org/r/20251126113828.10003-1-hanguidong02@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
3 weeks agohwmon: (adm1029) Add locking to avoid TOCTOU
Gui-Dong Han [Wed, 26 Nov 2025 11:40:46 +0000 (19:40 +0800)] 
hwmon: (adm1029) Add locking to avoid TOCTOU

The function fan_show checks shared data for zero or invalid values
before using it as a divisor. These accesses are currently lockless. If
the data changes to zero between the check and the division, it causes a
divide-by-zero error.

Explicitly acquire the update lock around these checks and calculations
to ensure the data remains stable, preventing Time-of-Check to
Time-of-Use (TOCTOU) race conditions.

Link: https://lore.kernel.org/all/CALbr=LYJ_ehtp53HXEVkSpYoub+XYSTU8Rg=o1xxMJ8=5z8B-g@mail.gmail.com/
Signed-off-by: Gui-Dong Han <hanguidong02@gmail.com>
Link: https://lore.kernel.org/r/20251126114047.10039-1-hanguidong02@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
3 weeks agohwmon: (lm87) Convert macros to functions to avoid TOCTOU
Gui-Dong Han [Wed, 26 Nov 2025 11:35:42 +0000 (19:35 +0800)] 
hwmon: (lm87) Convert macros to functions to avoid TOCTOU

The macro FAN_FROM_REG evaluates its arguments multiple times. When used
in lockless contexts involving shared driver data, this causes
Time-of-Check to Time-of-Use (TOCTOU) race conditions.

Convert the macro to a static function. This guarantees that arguments
are evaluated only once (pass-by-value), preventing the race
conditions.

Adhere to the principle of minimal changes by only converting macros
that evaluate arguments multiple times and are used in lockless
contexts.

Link: https://lore.kernel.org/all/CALbr=LYJ_ehtp53HXEVkSpYoub+XYSTU8Rg=o1xxMJ8=5z8B-g@mail.gmail.com/
Signed-off-by: Gui-Dong Han <hanguidong02@gmail.com>
Link: https://lore.kernel.org/r/20251126113542.9968-1-hanguidong02@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
3 weeks agohwmon: (asus-ec-sensors) correct Pro WS TRX50-SAGE WIFI entry
小太 [Tue, 25 Nov 2025 04:01:26 +0000 (05:01 +0100)] 
hwmon: (asus-ec-sensors) correct Pro WS TRX50-SAGE WIFI entry

Add missing temperature and fan sensors to Pro WS TRX50-SAGE WIFI

Also:
 - Format VRM names to match the BIOS
 - Fix swapped VRM_E and VRM_W entries

Signed-off-by: 小太 <nospam@kota.moe>
Signed-off-by: Eugene Shalygin <eugene.shalygin@gmail.com>
Link: https://lore.kernel.org/r/20251125040140.277756-1-eugene.shalygin@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
3 weeks agohwmon: (vt8231) Convert macros to functions to avoid TOCTOU
Gui-Dong Han [Mon, 24 Nov 2025 16:59:00 +0000 (00:59 +0800)] 
hwmon: (vt8231) Convert macros to functions to avoid TOCTOU

The macro FAN_FROM_REG evaluates its arguments multiple times. When used
with shared driver data, this leads to Time-of-Check to Time-of-Use
(TOCTOU) race conditions, potentially causing divide-by-zero errors.

Convert the macro to a static function to ensure arguments are evaluated
only once.

Additionally, in fan_div_store, move the reading of the old register
value and the calculation of the minimum limit inside the update lock.
This ensures that the read-modify-write sequence operates on consistent
data, preventing race conditions during fan divider updates.

Link: https://lore.kernel.org/all/CALbr=LYJ_ehtp53HXEVkSpYoub+XYSTU8Rg=o1xxMJ8=5z8B-g@mail.gmail.com/
Signed-off-by: Gui-Dong Han <hanguidong02@gmail.com>
Link: https://lore.kernel.org/r/20251124165900.4713-1-hanguidong02@gmail.com
[groeck: Dropped unnecessary line split]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
3 weeks agohwmon: (emc2103) Add locking to avoid TOCTOU
Gui-Dong Han [Mon, 24 Nov 2025 16:55:08 +0000 (00:55 +0800)] 
hwmon: (emc2103) Add locking to avoid TOCTOU

The functions fan1_input_show and fan1_target_show check shared data for
zero before using it as a divisor. These accesses are currently
lockless. If the data changes to zero between the check and the
division, it causes a divide-by-zero error.

Explicitly acquire the update lock around these checks and calculations
to ensure the data remains stable, preventing Time-of-Check to
Time-of-Use (TOCTOU) race conditions.

Link: https://lore.kernel.org/all/CALbr=LYJ_ehtp53HXEVkSpYoub+XYSTU8Rg=o1xxMJ8=5z8B-g@mail.gmail.com/
Signed-off-by: Gui-Dong Han <hanguidong02@gmail.com>
Link: https://lore.kernel.org/r/20251124165508.4667-1-hanguidong02@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
4 weeks agohwmon: (aspeed-g6-pwm-tach): Add AST2700 compatible string
Billy Tsai [Thu, 20 Nov 2025 11:12:32 +0000 (19:12 +0800)] 
hwmon: (aspeed-g6-pwm-tach): Add AST2700 compatible string

Extends device tree support to include the AST2700 chip variant by
adding its compatible string to the device match table.

The AST2700 PWM/TACH hardware is compatible with the existing driver
implementation used for AST2600.

Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
Link: https://lore.kernel.org/r/20251120-upstream_pwm_tach-v3-2-eaa2f9b300a2@aspeedtech.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
4 weeks agodt-bindings: hwmon: Add AST2700 compatible
Billy Tsai [Thu, 20 Nov 2025 11:12:31 +0000 (19:12 +0800)] 
dt-bindings: hwmon: Add AST2700 compatible

Adds support for the AST2700 PWM/Tach controller by extending the
compatible string enumeration in the device tree binding.

The AST2700 PWM/Tach hardware is compatible with the existing binding
schema and requires no additional properties or modifications beyond
the new compatible string.

Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20251120-upstream_pwm_tach-v3-1-eaa2f9b300a2@aspeedtech.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
4 weeks agohwmon: (asus-ec-sensors) add ROG STRIX X470-I GAMING
René Rebe [Thu, 20 Nov 2025 13:00:09 +0000 (14:00 +0100)] 
hwmon: (asus-ec-sensors) add ROG STRIX X470-I GAMING

Add support for ROG STRIX X470-I GAMING

Signed-off-by: René Rebe <rene@exactco.de>
Reviewed-by: Eugene Shalygin <eugene.shalygin@gmail.com>
Link: https://lore.kernel.org/r/20251120.140009.210830394703243387.rene@exactco.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
4 weeks agohwmon: (vt1211) Convert macros to functions to avoid TOCTOU
Gui-Dong Han [Thu, 20 Nov 2025 04:13:31 +0000 (12:13 +0800)] 
hwmon: (vt1211) Convert macros to functions to avoid TOCTOU

The macros IN_FROM_REG, TEMP_FROM_REG, and RPM_FROM_REG evaluate their
arguments multiple times. These macros are used in lockless show functions
involving shared driver data, leading to Time-of-Check to Time-of-Use race
conditions.

For example, RPM_FROM_REG checks if a value is 0 or 255, and then uses it
in a division. If the value is modified by another thread to 0 after the
check but before the division, it causes a divide-by-zero error.

Convert these macros to static functions. This guarantees that arguments
are evaluated only once (pass-by-value), fixing the race conditions.
Adhere to the principle of minimal changes by only converting the specific
macros involved in these lockless contexts.

Link: https://lore.kernel.org/all/CALbr=LYJ_ehtp53HXEVkSpYoub+XYSTU8Rg=o1xxMJ8=5z8B-g@mail.gmail.com/
Signed-off-by: Gui-Dong Han <hanguidong02@gmail.com>
Link: https://lore.kernel.org/r/20251120041331.1917570-1-hanguidong02@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
4 weeks agohwmon: (k10temp) Add AMD Steam Deck APU ID
René Rebe [Mon, 17 Nov 2025 18:50:48 +0000 (19:50 +0100)] 
hwmon: (k10temp) Add AMD Steam Deck APU ID

Add AMD Custom APU 0405 PCI ID as used in the Valve Steam Deck to
k10temp.

Signed-off-by: René Rebe <rene@exactco.de>
Link: https://lore.kernel.org/r/20251117.195048.691713748773231900.rene@exactco.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
4 weeks agohwmon: Add Apple Silicon SMC hwmon driver
James Calligeros [Wed, 12 Nov 2025 11:16:52 +0000 (21:16 +1000)] 
hwmon: Add Apple Silicon SMC hwmon driver

The System Management Controller on Apple Silicon devices is responsible
for integrating and exposing the data reported by the vast array of
hardware monitoring sensors present on these devices. It is also
responsible for fan control, and allows users to manually set fan
speeds if they so desire. Add a hwmon driver to expose current,
power, temperature, and voltage monitoring sensors, as well as
fan speed monitoring and control via the SMC on Apple Silicon devices.

The SMC firmware has no consistency between devices, even when they
share an SoC. The FourCC keys used to access sensors are almost
random. An M1 Mac mini will have different FourCCs for its CPU core
temperature sensors to an M1 MacBook Pro, for example. For this
reason, the valid sensors for a given device are specified in a
child of the SMC Devicetree node. The driver uses this information
to determine which sensors to make available at runtime.

Reviewed-by: Neal Gompa <neal@gompa.dev>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Co-developed-by: Janne Grunau <j@jannau.net>
Signed-off-by: Janne Grunau <j@jannau.net>
Signed-off-by: James Calligeros <jcalligeros99@gmail.com>
Link: https://lore.kernel.org/r/20251112-macsmc-subdevs-v5-6-728e4b91fe81@gmail.com
[groeck: Added Documentation to index]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
4 weeks agoMerge tag 'ib-mfd-hwmon-v6.19' into hwmon-next
Guenter Roeck [Mon, 17 Nov 2025 18:54:37 +0000 (10:54 -0800)] 
Merge tag 'ib-mfd-hwmon-v6.19' into hwmon-next

Immutable branch between MFD and HWMON due for the v6.19 merge window

4 weeks agoDocumentation/hwmon: Fix broken datasheet links for zl6100
Igor Reznichenko [Sat, 15 Nov 2025 18:29:08 +0000 (10:29 -0800)] 
Documentation/hwmon: Fix broken datasheet links for zl6100

Some of the datasheet links contained .pdf suffix which resulted in 404.
This patch updates the links to the correct URLs on Renesas website.

Signed-off-by: Igor Reznichenko <igor@reznichenko.net>
Link: https://lore.kernel.org/r/20251115182908.1357793-1-igor@reznichenko.net
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
5 weeks agoMAINTAINERS: Add entry for ST TSC1641 driver
Igor Reznichenko [Sat, 15 Nov 2025 07:31:34 +0000 (23:31 -0800)] 
MAINTAINERS: Add entry for ST TSC1641 driver

Add myself as maintainer for the TSC1641 driver

Signed-off-by: Igor Reznichenko <igor@reznichenko.net>
Link: https://lore.kernel.org/r/20251115073134.1345535-1-igor@reznichenko.net
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
5 weeks agohwmon: (corsair-cpro) Replace magic values with constants
Marius Zachmann [Thu, 13 Nov 2025 10:00:24 +0000 (11:00 +0100)] 
hwmon: (corsair-cpro) Replace magic values with constants

Replace two magic values in ccp_device with
existing constants.

Signed-off-by: Marius Zachmann <mail@mariuszachmann.de>
Link: https://lore.kernel.org/r/20251113100024.11103-3-mail@mariuszachmann.de
[groeck: Updated subject to include subsystem/driver]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
5 weeks agohwmon: (corsair-cpro) Read temperature as a signed value
Marius Zachmann [Thu, 13 Nov 2025 10:00:23 +0000 (11:00 +0100)] 
hwmon: (corsair-cpro) Read temperature as a signed value

Convert temperature to s16 to correctly read negative temperatures.

Signed-off-by: Marius Zachmann <mail@mariuszachmann.de>
Link: https://lore.kernel.org/r/20251113100024.11103-2-mail@mariuszachmann.de
[groeck: Updated subject, coding style]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
5 weeks agohwmon: (tmp421) Remove duplicate return in switch-case
Bruno Thomsen [Tue, 11 Nov 2025 14:44:06 +0000 (15:44 +0100)] 
hwmon: (tmp421) Remove duplicate return in switch-case

Use single read permission return in switch-case that handles
attributes in tmp421_is_visible().

Signed-off-by: Bruno Thomsen <bruno.thomsen@gmail.com>
Link: https://lore.kernel.org/r/20251111144406.7489-2-bruno.thomsen@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
5 weeks agohwmon: (tmp421) Check error when loading label from dt
Bruno Thomsen [Tue, 11 Nov 2025 14:44:05 +0000 (15:44 +0100)] 
hwmon: (tmp421) Check error when loading label from dt

Add error checking when loading temperature channel label defined
in device tree. Handling of error from of_property_read_string()
is inspired by lm90 driver and therefor contain same error string.

Signed-off-by: Bruno Thomsen <bruno.thomsen@gmail.com>
Link: https://lore.kernel.org/r/20251111144406.7489-1-bruno.thomsen@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
5 weeks agohwmon/pmbus: (isl68137) Add support for raa229141
Jeff Lin [Thu, 6 Nov 2025 10:45:19 +0000 (18:45 +0800)] 
hwmon/pmbus: (isl68137) Add support for raa229141

The RAA229141A is a digital dual output multiphase (X+Y ≤ 12) PWM
controller designed to be compliant with Intel VR13, VR13.HC, VR14 and
VR14.Cloud specifications, targeting VCORE and auxiliary rails.

The RAA229141A supports the Intel SVID interface along with PMBus V1.3
specifications, making it ideal for controlling the microprocessor core and
system rails in Intel VR13, VR13.HC, VR14 and VR14.Cloud platforms.

Signed-off-by: Jeff Lin <jefflin994697@gmail.com>
Link: https://lore.kernel.org/r/20251106104519.2014853-1-jefflin994697@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
5 weeks agohwmon: Add TSC1641 I2C power monitor driver
Igor Reznichenko [Wed, 5 Nov 2025 20:14:06 +0000 (12:14 -0800)] 
hwmon: Add TSC1641 I2C power monitor driver

Add a driver for the ST Microelectronics TSC1641 16-bit high-precision
power monitor. The driver supports reading bus voltage, current, power,
and temperature. Sysfs attributes are exposed for shunt resistor and
update interval. The driver integrates with the hwmon subsystem and
supports optional ALERT pin polarity configuration.

Signed-off-by: Igor Reznichenko <igor@reznichenko.net>
Link: https://lore.kernel.org/r/20251105201406.1210856-3-igor@reznichenko.net
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
5 weeks agodt-bindings: hwmon: ST TSC1641 power monitor
Igor Reznichenko [Wed, 5 Nov 2025 20:14:05 +0000 (12:14 -0800)] 
dt-bindings: hwmon: ST TSC1641 power monitor

Add binding for the TSC1641 I2C power monitor.

Signed-off-by: Igor Reznichenko <igor@reznichenko.net>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20251105201406.1210856-2-igor@reznichenko.net
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
6 weeks agomfd: macsmc: Add new __SMC_KEY macro
James Calligeros [Sat, 25 Oct 2025 00:24:36 +0000 (10:24 +1000)] 
mfd: macsmc: Add new __SMC_KEY macro

When using the _SMC_KEY macro in switch/case statements, GCC 15.2.1 errors
out with 'case label does not reduce to an integer constant'. Introduce
a new __SMC_KEY macro that can be used instead.

Signed-off-by: James Calligeros <jcalligeros99@gmail.com>
Link: https://patch.msgid.link/20251025-macsmc-subdevs-v4-5-374d5c9eba0e@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>
6 weeks agohwmon: (sy7636a) Fix sensor description
Andreas Kemnade [Mon, 27 Oct 2025 20:28:47 +0000 (21:28 +0100)] 
hwmon: (sy7636a) Fix sensor description

The temperature is not from the die itself but from an NTC. That was
verified with an IR camera. Fix that.

Signed-off-by: Andreas Kemnade <akemnade@kernel.org>
Link: https://lore.kernel.org/r/20251027202847.119707-1-akemnade@kernel.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
6 weeks agohwmon: (aht10) Add support for dht20
Akhilesh Patil [Sun, 2 Nov 2025 09:43:20 +0000 (15:13 +0530)] 
hwmon: (aht10) Add support for dht20

Add support for dht20 temperature and humidity sensor from Aosong.
Modify aht10 driver to handle different init command for dht20 sensor by
adding init_cmd entry in the driver data. dht20 sensor is compatible with
aht10 hwmon driver with this change.

Tested on TI am62x SK board with dht20 sensor connected at i2c-2 port.

Signed-off-by: Akhilesh Patil <akhilesh@ee.iitb.ac.in>
Link: https://lore.kernel.org/r/2025112-94320-906858@bhairav-test.ee.iitb.ac.in
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
6 weeks agohwmon: (asus-ec-sensors) add ROG STRIX X870-F GAMING WIFI
Eugene Shalygin [Sun, 2 Nov 2025 11:40:28 +0000 (12:40 +0100)] 
hwmon: (asus-ec-sensors) add ROG STRIX X870-F GAMING WIFI

Add support for the ROG STRIX X870-F GAMING WIFI board.
Testing done by the board owner [1].

[1] https://github.com/zeule/asus-ec-sensors/issues/83

Signed-off-by: Eugene Shalygin <eugene.shalygin@gmail.com>
Link: https://lore.kernel.org/r/20251102114038.283396-1-eugene.shalygin@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
6 weeks agodocs/hwmon: Update maxim-ic.com links to analog.com
Ankan Biswas [Fri, 17 Oct 2025 16:34:31 +0000 (22:04 +0530)] 
docs/hwmon: Update maxim-ic.com links to analog.com

In 2021, Maxim Integrated was acquired by Analog Devices.
maxim-ic.com & maximintegrated.com links redirect to analog.com.

Update maxim-ic.com & maximintegrated.com links to analog.com links.

Signed-off-by: Ankan Biswas <spyjetfayed@gmail.com>
Link: https://lore.kernel.org/r/20251017163501.11285-1-spyjetfayed@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
6 weeks agodocs/hwmon: Add missing datasheet links for Maxim chips
Ankan Biswas [Fri, 17 Oct 2025 16:08:05 +0000 (21:38 +0530)] 
docs/hwmon: Add missing datasheet links for Maxim chips

In 2021, Maxim Integrated was acquired by Analog Devices.
maxim-ic.com & maximintegrated.com links redirect to analog.com.

Missing datasheets now available at Analog Devices added.

Signed-off-by: Ankan Biswas <spyjetfayed@gmail.com>
Link: https://lore.kernel.org/r/20251017161422.4404-1-spyjetfayed@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
6 weeks agodocs/hwmon: Fix broken maxim-ic.com links to analog.com
Ankan Biswas [Fri, 17 Oct 2025 15:47:47 +0000 (21:17 +0530)] 
docs/hwmon: Fix broken maxim-ic.com links to analog.com

In 2021, Maxim Integrated was acquired by Analog Devices.
maxim-ic.com & maximintegrated.com links redirect to analog.com.

Broken redirects fixed to their proper analog.com links.
Fixes warnings in 'make linkcheckdocs'.

Signed-off-by: Ankan Biswas <spyjetfayed@gmail.com>
Link: https://lore.kernel.org/r/20251017154755.32105-1-spyjetfayed@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (corsair-psu) Rely on subsystem locking
Guenter Roeck [Tue, 9 Sep 2025 13:16:45 +0000 (06:16 -0700)] 
hwmon: (corsair-psu) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (corsair-psu) Rely on subsystem locking
Guenter Roeck [Tue, 9 Sep 2025 13:13:13 +0000 (06:13 -0700)] 
hwmon: (corsair-psu) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (chipcap2) Drop unnecessary include files
Guenter Roeck [Tue, 9 Sep 2025 13:10:07 +0000 (06:10 -0700)] 
hwmon: (chipcap2) Drop unnecessary include files

The driver does not perform any locking, does not execute or use any sleep
related functionality, and does not allocate memory. Drop the unnecessary
include files.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (asus_rog_ryujin) Rely on subsystem locking
Guenter Roeck [Tue, 9 Sep 2025 13:09:01 +0000 (06:09 -0700)] 
hwmon: (asus_rog_ryujin) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (i5500_temp) Drop unnecessary include files
Guenter Roeck [Tue, 9 Sep 2025 13:01:41 +0000 (06:01 -0700)] 
hwmon: (i5500_temp) Drop unnecessary include files

The driver does not perform any locking, does not execute or use any sleep
related functionality, and does not allocate memory. Drop the unnecessary
include files.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (gpd-fan) Rely on subsystem locking
Guenter Roeck [Tue, 9 Sep 2025 12:59:24 +0000 (05:59 -0700)] 
hwmon: (gpd-fan) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (aquacomputer_d5next) Rely on subsystem locking
Guenter Roeck [Tue, 9 Sep 2025 12:54:26 +0000 (05:54 -0700)] 
hwmon: (aquacomputer_d5next) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (ltc4282) Rely on subsystem locking
Guenter Roeck [Tue, 9 Sep 2025 12:50:35 +0000 (05:50 -0700)] 
hwmon: (ltc4282) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
2 months agohwmon: (lochnagar-hwmon) Rely on subsystem locking
Guenter Roeck [Tue, 9 Sep 2025 00:33:39 +0000 (17:33 -0700)] 
hwmon: (lochnagar-hwmon) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (sfctemp) Rely on subsystem locking
Guenter Roeck [Mon, 8 Sep 2025 23:29:03 +0000 (16:29 -0700)] 
hwmon: (sfctemp) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (adt7x10) Rely on subsystem locking
Guenter Roeck [Mon, 8 Sep 2025 23:28:15 +0000 (16:28 -0700)] 
hwmon: (adt7x10) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
2 months agohwmon: (peci) Rely on subsystem locking
Guenter Roeck [Mon, 8 Sep 2025 23:22:27 +0000 (16:22 -0700)] 
hwmon: (peci) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (ltc2947-core) Rely on subsystem locking
Guenter Roeck [Mon, 8 Sep 2025 20:40:55 +0000 (13:40 -0700)] 
hwmon: (ltc2947-core) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
2 months agohwmon: (adt7411) Rely on subsystem locking
Guenter Roeck [Mon, 8 Sep 2025 20:14:25 +0000 (13:14 -0700)] 
hwmon: (adt7411) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
2 months agohwmon: (aht10) Rely on subsystem locking
Guenter Roeck [Mon, 8 Sep 2025 04:38:32 +0000 (21:38 -0700)] 
hwmon: (aht10) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (lm95241) Rely on subsystem locking
Guenter Roeck [Mon, 8 Sep 2025 04:36:47 +0000 (21:36 -0700)] 
hwmon: (lm95241) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (ina238) Rely on subsystem locking
Guenter Roeck [Sun, 7 Sep 2025 18:44:37 +0000 (11:44 -0700)] 
hwmon: (ina238) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (ftsteutates) Rely on subsystem locking
Guenter Roeck [Mon, 8 Sep 2025 03:51:28 +0000 (20:51 -0700)] 
hwmon: (ftsteutates) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (powr1220) Rely on subsystem locking
Guenter Roeck [Mon, 8 Sep 2025 03:45:35 +0000 (20:45 -0700)] 
hwmon: (powr1220) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (mr75203) Drop unnecessary include file
Guenter Roeck [Mon, 8 Sep 2025 03:41:27 +0000 (20:41 -0700)] 
hwmon: (mr75203) Drop unnecessary include file

The driver does not perform any locking and thus does not need to
include mutex.h. Drop the unnecessary include file.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (k10temp) Rely on subsystem locking
Guenter Roeck [Sun, 7 Sep 2025 22:36:01 +0000 (15:36 -0700)] 
hwmon: (k10temp) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (ina3221) Rely on subsystem locking
Guenter Roeck [Sun, 7 Sep 2025 22:14:20 +0000 (15:14 -0700)] 
hwmon: (ina3221) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (sht4x) Rely on subsystem locking
Guenter Roeck [Sun, 7 Sep 2025 22:12:01 +0000 (15:12 -0700)] 
hwmon: (sht4x) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (ina2xx) Rely on subsystem locking
Guenter Roeck [Sun, 7 Sep 2025 22:08:30 +0000 (15:08 -0700)] 
hwmon: (ina2xx) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (sbtsi_temp) Rely on subsystem locking
Guenter Roeck [Sun, 7 Sep 2025 21:32:38 +0000 (14:32 -0700)] 
hwmon: (sbtsi_temp) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (hs3001) Rely on subsystem locking
Guenter Roeck [Sun, 7 Sep 2025 21:30:30 +0000 (14:30 -0700)] 
hwmon: (hs3001) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (lm92) Rely on subsystem locking
Guenter Roeck [Sun, 7 Sep 2025 21:11:08 +0000 (14:11 -0700)] 
hwmon: (lm92) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (lm95234) Rely on subsystem locking
Guenter Roeck [Sun, 7 Sep 2025 21:09:50 +0000 (14:09 -0700)] 
hwmon: (lm95234) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (max127) Rely on subsystem locking
Guenter Roeck [Sun, 7 Sep 2025 21:07:08 +0000 (14:07 -0700)] 
hwmon: (max127) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agodocs/hwmon: Fix broken links warnings in lm90.rst
Ankan Biswas [Thu, 16 Oct 2025 10:30:47 +0000 (16:00 +0530)] 
docs/hwmon: Fix broken links warnings in lm90.rst

This patch fixes warnings in Documentation/hwmon/lm90.rst reported when
running 'make linkcheckdocs'.

On 2011-09-23 National Semiconductors became part of Texas Instruments
and national.com is no longer accessible. The datasheet resources for
the chips are now available at Texas Instruments website and have been
updated for lm90.

In 2021, Maxim Integrated was acquired by Analog Devices and maxim-ic.com
redirects to analog.com. The chip datasheets are now available at
Analog Devices and have been updated accordingly.

Some additional broken or unavailable links have been replaced with
equivalents hosted by DigiKey.

Signed-off-by: Ankan Biswas <spyjetfayed@gmail.com>
Link: https://lore.kernel.org/r/20251016103049.2573-1-spyjetfayed@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (adt7410): Support adt7422 chip
Nuno Sá [Wed, 15 Oct 2025 14:52:21 +0000 (15:52 +0100)] 
hwmon: (adt7410): Support adt7422 chip

Add support for the ADT7422 high accuracy digital temperature sensor. It's
identical to the other chips supported in the driver so we just need to
add it to the ID tables.

Co-developed-by: Cosmin Tanislav <demonsingur@gmail.com>
Signed-off-by: Cosmin Tanislav <demonsingur@gmail.com>
Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20251015-dev-add-adt7422-v1-3-7cf72d3253ad@analog.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (adt7410): Add OF match table
Nuno Sá [Wed, 15 Oct 2025 14:52:20 +0000 (15:52 +0100)] 
hwmon: (adt7410): Add OF match table

Add a struct of_device_id match table to the driver.

While at it, make sure to properly include mod_devicetable.h which is
also needed for struct i2c_device_id.

Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20251015-dev-add-adt7422-v1-2-7cf72d3253ad@analog.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agodt-bindings: trivial-devices: add ADT7410, ADT7420 and ADT7422
Nuno Sá [Wed, 15 Oct 2025 14:52:19 +0000 (15:52 +0100)] 
dt-bindings: trivial-devices: add ADT7410, ADT7420 and ADT7422

Add Analog Devices high accuracy digital temperature sensors to trivial
devices.

Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20251015-dev-add-adt7422-v1-1-7cf72d3253ad@analog.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (scmi) Enable sensors to assure they can be read
Marek Vasut [Wed, 15 Oct 2025 11:49:28 +0000 (13:49 +0200)] 
hwmon: (scmi) Enable sensors to assure they can be read

The SCMI specification states that SENSOR_CONFIG_SET is used to
enable/disable the sensors. The sensors can be disabled by default,
which is the case at least on NXP i.MX95. Explicitly trigger the
SENSOR_CONFIG_SET to enable the sensors, otherwise sensor read may
fail and won't return valid data.

Signed-off-by: Marek Vasut <marek.vasut@mailbox.org>
Link: https://lore.kernel.org/r/20251015114953.148706-1-marek.vasut@mailbox.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (max31790) Rely on subsystem locking
Guenter Roeck [Sun, 7 Sep 2025 21:05:28 +0000 (14:05 -0700)] 
hwmon: (max31790) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (max6620) Rely on subsystem locking
Guenter Roeck [Sun, 7 Sep 2025 21:00:54 +0000 (14:00 -0700)] 
hwmon: (max6620) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (nct7363) Drop unnecessary include files
Guenter Roeck [Sun, 7 Sep 2025 20:51:50 +0000 (13:51 -0700)] 
hwmon: (nct7363) Drop unnecessary include files

The driver does not perform any locking and does not create sysfs
attributes. Drop the unnecessary include files.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (nct7904) Rely on subsystem locking
Guenter Roeck [Sun, 7 Sep 2025 20:50:21 +0000 (13:50 -0700)] 
hwmon: (nct7904) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (max31827) Rely on subsystem locking
Guenter Roeck [Mon, 9 Jun 2025 18:14:16 +0000 (11:14 -0700)] 
hwmon: (max31827) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (max6639) Rely on subsystem locking
Guenter Roeck [Mon, 9 Jun 2025 18:08:07 +0000 (11:08 -0700)] 
hwmon: (max6639) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

While at it, drop unnecessary include of hwmon-sysfs.c.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (tmp102) Drop unnecessary include files
Guenter Roeck [Mon, 9 Jun 2025 13:51:14 +0000 (06:51 -0700)] 
hwmon: (tmp102) Drop unnecessary include files

The driver does not perform any locking and does not create sysfs
attributes. Drop the unnecessary include files.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (tmp103) Drop unnecessary include files
Guenter Roeck [Mon, 9 Jun 2025 13:49:07 +0000 (06:49 -0700)] 
hwmon: (tmp103) Drop unnecessary include files

The driver does not perform any locking, does not sleep or check the time,
and does not create sysfs attributes. Drop the unnecessary include files.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (lm95245) Rely on subsystem locking
Guenter Roeck [Sun, 8 Jun 2025 04:10:12 +0000 (21:10 -0700)] 
hwmon: (lm95245) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (ltc4245) Rely on subsystem locking
Guenter Roeck [Sun, 8 Jun 2025 04:08:40 +0000 (21:08 -0700)] 
hwmon: (ltc4245) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

While at it, drop the unnecessary include of hwmon-sysfs.h.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (max6697) Rely on subsystem locking
Guenter Roeck [Sun, 8 Jun 2025 04:07:16 +0000 (21:07 -0700)] 
hwmon: (max6697) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (drivetemp) Rely on subsystem locking
Guenter Roeck [Sun, 8 Jun 2025 04:03:55 +0000 (21:03 -0700)] 
hwmon: (drivetemp) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (tmp108) Drop mutex.h include
Guenter Roeck [Sun, 8 Jun 2025 04:02:15 +0000 (21:02 -0700)] 
hwmon: (tmp108) Drop mutex.h include

The driver does not perform any locking, so including mutex.h is not
necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (tmp401) Rely on subsystem locking
Guenter Roeck [Sun, 8 Jun 2025 04:01:11 +0000 (21:01 -0700)] 
hwmon: (tmp401) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (tmp421) Rely on subsystem locking
Guenter Roeck [Sun, 8 Jun 2025 04:00:41 +0000 (21:00 -0700)] 
hwmon: (tmp421) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (tmp464) Rely on subsystem locking
Guenter Roeck [Sun, 8 Jun 2025 03:56:22 +0000 (20:56 -0700)] 
hwmon: (tmp464) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (emc1403) Rely on subsystem locking
Guenter Roeck [Fri, 6 Jun 2025 00:35:04 +0000 (17:35 -0700)] 
hwmon: (emc1403) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (adm9240) Rely on subsystem locking
Guenter Roeck [Fri, 6 Jun 2025 00:31:20 +0000 (17:31 -0700)] 
hwmon: (adm9240) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (lm90) Rely on subsystem locking
Guenter Roeck [Fri, 6 Jun 2025 00:29:55 +0000 (17:29 -0700)] 
hwmon: (lm90) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking n the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (jc42) Rely on subsystem locking
Guenter Roeck [Thu, 5 Jun 2025 23:41:36 +0000 (16:41 -0700)] 
hwmon: (jc42) Rely on subsystem locking

Attribute access is now serialized in the hardware monitoring core,
so locking in the driver code is no longer necessary. Drop it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (pmbus) add driver for MPS MP9945
Cosmo Chou [Thu, 9 Oct 2025 20:54:58 +0000 (04:54 +0800)] 
hwmon: (pmbus) add driver for MPS MP9945

Add support for mp9945 device from Monolithic Power Systems, Inc.
(MPS) vendor. This is a single phase digital step down converter.

Signed-off-by: Cosmo Chou <chou.cosmo@gmail.com>
Link: https://lore.kernel.org/r/20251009205458.396368-2-chou.cosmo@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agodt-bindings: trivial-devices: add mps,mp9945
Cosmo Chou [Thu, 9 Oct 2025 20:54:57 +0000 (04:54 +0800)] 
dt-bindings: trivial-devices: add mps,mp9945

Add dt-bindings for MPS mp9945 controller.

Acked-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Cosmo Chou <chou.cosmo@gmail.com>
Link: https://lore.kernel.org/r/20251009205458.396368-1-chou.cosmo@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agodt-bindings: hwmon: Convert apm,xgene-slimpro-hwmon to DT schema
Rob Herring (Arm) [Mon, 13 Oct 2025 21:31:26 +0000 (16:31 -0500)] 
dt-bindings: hwmon: Convert apm,xgene-slimpro-hwmon to DT schema

Convert APM X-Gene slimpro-hwmon binding to DT schema format. It's a
straight-forward conversion.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20251013213127.692373-1-robh@kernel.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agodt-bindings: hwmon: pmbus/max17616: Add SMBALERT interrupt property
Kim Seer Paller [Mon, 13 Oct 2025 05:00:47 +0000 (13:00 +0800)] 
dt-bindings: hwmon: pmbus/max17616: Add SMBALERT interrupt property

Add interrupt property to document the SMBALERT pin functionality for
fault condition signal.

Suggested-by: Marcelo Schmitt <marcelo.schmitt@analog.com>
Signed-off-by: Kim Seer Paller <kimseer.paller@analog.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20251013-upstream-max17616-v1-1-0e15002479c3@analog.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (ltc4282) Use the energy64 attribute type to report the energy
Guenter Roeck [Sun, 12 Oct 2025 21:16:25 +0000 (14:16 -0700)] 
hwmon: (ltc4282) Use the energy64 attribute type to report the energy

Use the energy64 attribute type instead of a locally defined sysfs
attribute to report the accumulated energy.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20251012211625.533791-2-linux@roeck-us.net
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (ltc2947) Use the energy64 attribute type to report the energy
Guenter Roeck [Sun, 12 Oct 2025 21:16:24 +0000 (14:16 -0700)] 
hwmon: (ltc2947) Use the energy64 attribute type to report the energy

Use the energy64 attribute type instead of a locally defined sysfs
attribute to report the accumulated energy.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20251012211625.533791-1-linux@roeck-us.net
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (peci/cputemp) add Intel Emerald Rapids support
Ivan Mikhaylov [Mon, 6 Oct 2025 21:53:21 +0000 (00:53 +0300)] 
hwmon: (peci/cputemp) add Intel Emerald Rapids support

Add support to read DTS for reading Intel Emerald Rapids platform.

Signed-off-by: Ivan Mikhaylov <fr0st61te@gmail.com>
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Link: https://lore.kernel.org/r/20251006215321.5036-4-fr0st61te@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (peci/dimmtemp) add Intel Emerald Rapids platform support
Ivan Mikhaylov [Mon, 6 Oct 2025 21:53:20 +0000 (00:53 +0300)] 
hwmon: (peci/dimmtemp) add Intel Emerald Rapids platform support

Extend the functionality of hwmon (peci/dimmtemp) for Emerald Rapids
platform.

The patch has been tested on a 5S system with 16 DIMMs installed.
Verified read of DIMM temperature thresholds & temperature.

Using Sapphire's callbacks about getting thresholds because it's same
platform/socket.

Signed-off-by: Ivan Mikhaylov <fr0st61te@gmail.com>
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Link: https://lore.kernel.org/r/20251006215321.5036-3-fr0st61te@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agopeci: cpu: add Intel Emerald Rapids support
Ivan Mikhaylov [Mon, 6 Oct 2025 21:53:19 +0000 (00:53 +0300)] 
peci: cpu: add Intel Emerald Rapids support

Add support for detection of Intel Emerald Rapids processor based on
CPU model.

Emerald Rapids Xeon processors with the model set to
INTEL_EMERALDRAPIDS_X. The data field for this entry is "emr".

Tested the patch series with AST2600 BMC with 5S Intel Emerald Rapids
processors & verified by reading cpu & dimm temperature which matches
host sensor values from lmsensors.

Signed-off-by: Ivan Mikhaylov <fr0st61te@gmail.com>
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Link: https://lore.kernel.org/r/20251006215321.5036-2-fr0st61te@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (asus-ec-sensors) add ROG STRIX X870E-H GAMING WIFI7
Maximilian Luz [Fri, 3 Oct 2025 08:07:57 +0000 (10:07 +0200)] 
hwmon: (asus-ec-sensors) add ROG STRIX X870E-H GAMING WIFI7

The board has a similar sensor configuration as the ROG STRIX X870E-E
GAMING WIFI, with an additional temperature sensor header.

Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
Signed-off-by: Eugene Shalygin <eugene.shalygin@gmail.com>
Link: https://lore.kernel.org/r/20251003081002.1013313-3-eugene.shalygin@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (asus-ec-sensors) add Pro WS TRX50-SAGE WIFI
Paul Heneghan [Fri, 3 Oct 2025 08:07:56 +0000 (10:07 +0200)] 
hwmon: (asus-ec-sensors) add Pro WS TRX50-SAGE WIFI

Added support for Pro WS TRX50-SAGE WIFI motherboard.

Signed-off-by: Paul Heneghan <paul@networks-extra.com>
Signed-off-by: Eugene Shalygin <eugene.shalygin@gmail.com>
Link: https://lore.kernel.org/r/20251003081002.1013313-2-eugene.shalygin@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2 months agohwmon: (pmbus/max34440): add support adpm12200
Alexis Czezar Torreno [Wed, 1 Oct 2025 00:37:08 +0000 (08:37 +0800)] 
hwmon: (pmbus/max34440): add support adpm12200

ADPM12200 is a quarter brick DC/DC Power Module. It is a high power
non-isolated converter capable of delivering regulated 12V with
continuous power level of 2000W. Uses PMBus.

Signed-off-by: Alexis Czezar Torreno <alexisczezar.torreno@analog.com>
Link: https://lore.kernel.org/r/20251001-hwmon-next-v1-2-f8ca6a648203@analog.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>